接口 IHashCache<TField,TValue>
- 所有超级接口:
AutoCloseable,IBaseCache,IRedisCache
- 所有已知子接口:
IHashDbCache<TField,TValue>
- 所有已知实现类:
HashCache,HashDbCache
hash 接口
-
方法概要
修饰符和类型方法说明voidaddOrUpdate(Map<TField, TValue> map, Object... args) 添加或更新数据longhash value 原子自减,TValue 必须是 long、int类型long移除hash keyboolean移除hash keyboolean是否存在hash key获取数据long获取hash key 数量获取hash key获取数据获取数据获取hash valuelonghash value 原子自增,TValue 必须是 long、int类型游标方式读取数据boolean添加或更新数据从接口继承的方法 java.lang.AutoCloseable
close从接口继承的方法 cn.myafx.cache.base.IRedisCache
contains, expire, expire, getCacheDb, getCacheKey, getKeyConfig, ping, remove, setJsonMapper
-
方法详细资料
-
set
添加或更新数据- 参数:
field- hash keyvalue- hash valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
addOrUpdate
添加或更新数据- 参数:
map- Mapargs- 缓存key参数- 抛出:
Exception
-
get
获取数据- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
getValue
获取数据- 参数:
field- hash keyargs- 缓存key参数- 返回:
- 抛出:
Exception
-
getValue
获取数据- 参数:
fields- hash keyargs- 缓存key参数- 返回:
- 抛出:
Exception
-
geTFields
获取hash key- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
getValues
获取hash value- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
getCount
获取hash key 数量- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
exists
是否存在hash key- 参数:
field- hash keyargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除hash key- 参数:
field- hash keyargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除hash key- 参数:
fields- hash keyargs- 缓存key参数- 返回:
- 抛出:
Exception
-
increment
hash value 原子自增,TValue 必须是 long、int类型- 参数:
field- hash keyincrementValue- 增量args- 缓存key参数- 返回:
- 抛出:
Exception
-
decrement
hash value 原子自减,TValue 必须是 long、int类型- 参数:
field- hash keydecrementValue- 自减量args- 缓存key参数- 返回:
- 抛出:
Exception
-
scan
ICacheCursor<Map.Entry<TField,TValue>> scan(String pattern, int count, Object... args) throws Exception 游标方式读取数据- 参数:
pattern- 搜索表达式count- 游标页大小args- 缓存key参数- 返回:
- 抛出:
Exception
-