public interface IRedisKeyCommands
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
exists(int index,
String key)
判断key是否存在
|
Boolean |
exists(String key)
判断key是否存在
|
Boolean |
expire(int index,
String key,
long seconds)
设置过期时间(秒)
|
Boolean |
expire(String key,
long seconds)
设置过期时间(秒)
|
<T> Set<T> |
scan(int index,
String pattern,
int count,
Class<T> clazz)
扫描获取最多的数据
|
<T> Set<T> |
scan(String pattern,
int count,
Class<T> clazz)
扫描获取最多的数据
|
Boolean expire(int index, String key, long seconds)
index - 库key - keyseconds - 秒数Boolean exists(int index, String key)
index - 库key - key<T> Set<T> scan(String pattern, int count, Class<T> clazz)
T - 循环的数据类型pattern - 扫描的keycount - 循环的固定大小clazz - 循环出的数据Copyright © 2021. All rights reserved.