|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface Cache
An interface for a cache keyed by a String with a byte array as data.
入れ子のクラスの概要 | |
---|---|
static class |
Cache.Entry
Data and metadata for an entry returned by the cache. |
メソッドの概要 | |
---|---|
void |
clear()
Empties the cache. |
Cache.Entry |
get(java.lang.String key)
Retrieves an entry from the cache. |
void |
initialize()
Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread. |
void |
invalidate(java.lang.String key,
boolean fullExpire)
Invalidates an entry in the cache. |
void |
put(java.lang.String key,
Cache.Entry entry)
Adds or replaces an entry to the cache. |
void |
remove(java.lang.String key)
Removes an entry from the cache. |
メソッドの詳細 |
---|
Cache.Entry get(java.lang.String key)
key
- Cache key
Cache.Entry
or null in the event of a cache missvoid put(java.lang.String key, Cache.Entry entry)
key
- Cache keyentry
- Data to store and metadata for cache coherency, TTL, etc.void initialize()
void invalidate(java.lang.String key, boolean fullExpire)
key
- Cache keyfullExpire
- True to fully expire the entry, false to soft expirevoid remove(java.lang.String key)
key
- Cache keyvoid clear()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |