public class JedisDtCacheClient extends JedisBase implements DtCacheClient
| 构造器和说明 |
|---|
JedisDtCacheClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
del(String key)
单个删除缓存
|
void |
delBulk(Collection<String> keys)
批量删除缓存
|
String |
get(String key)
单个获取缓存
|
Map<String,String> |
getBulk(Collection<String> keys)
批量获取缓存
|
void |
set(String key,
String value,
int seconds)
单个设置KEY
|
void |
setBulk(Map<String,String> map,
int seconds)
批量设置缓存
|
close, getJedis, getKeyName, setJedisFactory, setKeyNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic String get(String key)
DtCacheClientget 在接口中 DtCacheClientkey - keypublic Map<String,String> getBulk(Collection<String> keys)
DtCacheClientgetBulk 在接口中 DtCacheClientkeys - keyspublic void set(String key, String value, int seconds)
DtCacheClientset 在接口中 DtCacheClientkey - keyvalue - valueseconds - 过期时间,单位:秒public void setBulk(Map<String,String> map, int seconds)
DtCacheClientsetBulk 在接口中 DtCacheClientmap - KV Mapseconds - 过期时间,单位:秒public void del(String key)
DtCacheClientdel 在接口中 DtCacheClientkey - keypublic void delBulk(Collection<String> keys)
DtCacheClientdelBulk 在接口中 DtCacheClientkeys - keysCopyright © 2018. All rights reserved.