接口 IStringCache<T>
- 所有超级接口:
AutoCloseable,IBaseCache,IRedisCache,IValueCache<T>
- 所有已知子接口:
IDataDbCache<T>,IDistributedLockDbCache<T>,IParamDbCache<T>,ISessionDbCache<T>
string key value 接口
-
方法概要
修饰符和类型方法说明long原子减 T 必须是 int、 long获取缓存long原子增 T 必须是 int、 longboolean添加或更新boolean添加或更新从接口继承的方法 java.lang.AutoCloseable
close从接口继承的方法 cn.myafx.cache.base.IRedisCache
contains, expire, expire, getCacheDb, getCacheKey, getKeyConfig, ping, remove, setJsonMapper
-
方法详细资料
-
get
获取缓存- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
set
添加或更新- 参数:
m- 缓存数据when- whenargs- 缓存key参数- 返回:
- 抛出:
Exception
-
set
添加或更新- 参数:
m- 缓存数据expireSeconds- 缓存有效时间,秒when- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
increment
原子增 T 必须是 int、 long- 参数:
incrementValue- 增量args- 缓存key参数- 返回:
- 抛出:
Exception
-
decrement
原子减 T 必须是 int、 long- 参数:
decrementValue- 减量args- 原子减 T 必须是 int、 long- 返回:
- 抛出:
Exception
-