001package com.box.sdk; 002 003/** 004 * Implement this interface to provide a custom access token cache implementation for your 005 * environment. 006 * 007 * <p>For production applications it is recommended to use a distributed cache like Memcached or 008 * Redis, and to implement this interface to store and retrieve access tokens appropriately for your 009 * environment. 010 */ 011public interface IAccessTokenCache { 012 013 /** 014 * Get the access token information from the cache. 015 * 016 * @param key key to look for. 017 * @return access token information. 018 */ 019 String get(String key); 020 021 /** 022 * Store the access token information in the cache. 023 * 024 * @param key key to use. 025 * @param value access token information to store. 026 */ 027 void put(String key, String value); 028}