Cache.Entry| 构造器和说明 |
|---|
NoCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Empties the cache.
|
Cache.Entry |
get(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(String key,
boolean fullExpire)
Invalidates an entry in the cache.
|
void |
put(String key,
Cache.Entry entry)
Adds or replaces an entry to the cache.
|
void |
remove(String key)
Removes an entry from the cache.
|
public Cache.Entry get(String key)
Cacheget 在接口中 Cachekey - Cache keyCache.Entry or null in the event of a cache misspublic void put(String key, Cache.Entry entry)
Cachepublic void invalidate(String key, boolean fullExpire)
Cacheinvalidate 在接口中 Cachekey - Cache keyfullExpire - True to fully expire the entry, false to soft expirepublic void initialize()
Cacheinitialize 在接口中 CacheCopyright © 2018. All rights reserved.