public class JetCacheSpringCacheManager extends Object implements org.springframework.cache.CacheManager
Description: 基于 JetCache 的 Spring Cache Manager 扩展
| 构造器和说明 |
|---|
JetCacheSpringCacheManager(JetCacheCreateCacheFactory jetCacheCreateCacheFactory) |
JetCacheSpringCacheManager(JetCacheCreateCacheFactory jetCacheCreateCacheFactory,
String... cacheNames) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.springframework.cache.Cache |
createJetCache(String name) |
protected org.springframework.cache.Cache |
createJetCache(String name,
Duration expire) |
org.springframework.cache.Cache |
getCache(String name) |
Collection<String> |
getCacheNames() |
boolean |
isAllowNullValues() |
void |
setAllowNullValues(boolean allowNullValues) |
public JetCacheSpringCacheManager(JetCacheCreateCacheFactory jetCacheCreateCacheFactory)
public JetCacheSpringCacheManager(JetCacheCreateCacheFactory jetCacheCreateCacheFactory, String... cacheNames)
public void setAllowNullValues(boolean allowNullValues)
public boolean isAllowNullValues()
protected org.springframework.cache.Cache createJetCache(String name)
protected org.springframework.cache.Cache createJetCache(String name, Duration expire)
@Nullable public org.springframework.cache.Cache getCache(String name)
getCache 在接口中 org.springframework.cache.CacheManagerpublic Collection<String> getCacheNames()
getCacheNames 在接口中 org.springframework.cache.CacheManagerCopyright © 2023 Dromara. All rights reserved.