public class InMemoryLRUAccessTokenCache extends Object implements IAccessTokenCache
Constructor and Description |
---|
InMemoryLRUAccessTokenCache(int maxEntries)
Creates an in-memory LRU access token cache.
|
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Get an entry from the cache.
|
void |
put(String key,
String value)
Add an entry to the cache.
|
public InMemoryLRUAccessTokenCache(int maxEntries)
maxEntries
- maximum number of entries to store.public void put(String key, String value)
put
in interface IAccessTokenCache
key
- key to use.value
- access token information to store.public String get(String key)
get
in interface IAccessTokenCache
key
- key to look for.