Interface CacheManager
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EhcacheCacheManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()關閉管理器,釋放所有資源<K,V> Cache <K, V> createCache(CacheConfiguration<K, V> configuration) 建立快取<K,V> Cache <K, V> 取得快取取得所有快取名稱boolean檢查快取是否存在voidremoveCache(String name) 移除快取
-
Method Details
-
createCache
建立快取- Type Parameters:
K- 鍵的型別V- 值的型別- Parameters:
configuration- 快取配置- Returns:
- 快取實例
- Throws:
IllegalStateException- 若快取已存在
-
getCache
-
removeCache
-
getCacheNames
-
hasCache
-
close
-