| 构造器和说明 |
|---|
MemoryCache(Map<K,V> backingMap)
通过Map实现类构造MemoryCache
|
public V get(K key) throws CacheException
Cacheget 在接口中 Cache<K,V>CacheExceptionpublic V put(K key, V value) throws CacheException
Cacheput 在接口中 Cache<K,V>CacheExceptionpublic V remove(K key) throws CacheException
Cacheremove 在接口中 Cache<K,V>CacheExceptionpublic void clear()
throws CacheException
Cacheclear 在接口中 Cache<K,V>CacheExceptionCopyright © 2013-2015. All Rights Reserved.