K - key typepublic interface Cache<K>
CacheManager.CacheManager| 限定符和类型 | 方法和说明 |
|---|---|
Object |
get(K key)
Get the cache according to the key value.
|
Map<K,Object> |
getAll(Iterable<K> keys)
Get all cache according to the key values.
|
boolean |
isExpired()
Whether the current cache has expired.
|
void |
put(K key,
Object value)
Add cache value.
|
void |
putAll(Map<K,Object> caches)
Add all cache value.
|
void |
putIfAbsent(K key,
Object cacheValue)
Add cache value if it does not exist.
|
Copyright © 2023. All rights reserved.