- 所有超级接口:
AutoCloseable, IBaseCache
- 所有已知子接口:
IDataDbCache<T>, IDistributedLockDbCache<T>, IGeoCache, IGeoDbCache, IHashCache<TField,TValue>, IHashDbCache<TField,TValue>, ILinkListCache<T>, ILinkListDbCache<T>, IParamDbCache<T>, ISessionDbCache<T>, ISetCache<T>, ISetDbCache<T>, ISortSetCache<T>, ISortSetDbCache<T>, IStringCache<T>, IValueCache<T>
- 所有已知实现类:
DataDbCache, DistributedLockDbCache, GeoCache, GeoDbCache, HashCache, HashDbCache, LinkListCache, LinkListDbCache, ParamDbCache, RedisCache, SessionDbCache, SetCache, SetDbCache, SortSetCache, SortSetDbCache, StringCache
-
方法概要
boolean
boolean
boolean
int
boolean
void
-
方法详细资料
-
setJsonMapper
setJsonMapper
-
-
getCacheKey
获取完整缓存key
- 参数:
args - 缓存key参数
- 返回:
- key
- 抛出:
Exception
-
getCacheDb
int getCacheDb(String cachekey)
获取完整key所在db
- 参数:
cachekey - 完整缓存key
- 返回:
-
contains
缓存key是否存在
- 参数:
args - 缓存key参数
- 返回:
- 抛出:
Exception
-
remove
移除缓存
- 参数:
args - 缓存key参数
- 返回:
- 抛出:
Exception
-
expire
设置缓存有效时间
- 参数:
expireSeconds - 缓存有效时间, 秒
args - 缓存key参数
- 返回:
- 抛出:
Exception
-
expire
根据系统配置设置缓存有效时间
- 参数:
args - 缓存key参数
- 返回:
- 抛出:
Exception
-