All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.box.sdk.IAccessTokenCache Maven / Gradle / Ivy

There is a newer version: 4.11.1
Show newest version
package com.box.sdk;

/**
 * Implement this interface to provide a custom access token cache implementation for your environment.
 *
 * 

For production applications it is recommended to use a distributed cache like Memcached or Redis, and to * implement this interface to store and retrieve access tokens appropriately for your environment.

*/ public interface IAccessTokenCache { /** * Get the access token information from the cache. * @param key key to look for. * @return access token information. */ String get(String key); /** * Store the access token information in the cache. * @param key key to use. * @param value access token information to store. */ void put(String key, String value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy