com.box.sdk.IAccessTokenCache Maven / Gradle / Ivy
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);
}