public interface StringOperations extends StringCommands, RedisOperations
StringCommands.GetExArgument, StringCommands.SetArgument
限定符和类型 | 方法和说明 |
---|---|
<V> V |
getDelObject(byte[] key)
获取键 key 相关联的字符串值,并将值反序列化为对象;并删除该 key
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getDelObject(byte[] key,
Class<V> clazz)
获取键 key 相关联的字符串值,并将值反序列化为 clazz 指定的对象;并删除该 key
详情说明 https://redis.io/commands/getdel/
|
<V> V |
getDelObject(byte[] key,
TypeReference<V> type)
获取键 key 相关联的字符串值,并将值反序列化为 type 指定的对象;并删除该 key
详情说明 https://redis.io/commands/getdel/
|
<V> V |
getDelObject(String key)
获取键 key 相关联的字符串值,并将值反序列化为对象;并删除该 key
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getDelObject(String key,
Class<V> clazz)
获取键 key 相关联的字符串值,并将值反序列化为 clazz 指定的对象;并删除该 key
详情说明 https://redis.io/commands/getdel/
|
<V> V |
getDelObject(String key,
TypeReference<V> type)
获取键 key 相关联的字符串值,并将值反序列化为 type 指定的对象;并删除该 key
详情说明 https://redis.io/commands/getdel/
|
<V> V |
getExObject(byte[] key,
StringCommands.GetExArgument getExArgument)
获取键 key 的值反序列化后对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getExObject(byte[] key,
StringCommands.GetExArgument getExArgument,
Class<V> clazz)
获取键 key 的值反序列化为 clazz 指定类型后的对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getExObject(byte[] key,
StringCommands.GetExArgument getExArgument,
TypeReference<V> type)
获取键 key 的值反序列化为 type 指定类型后的对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getExObject(String key,
StringCommands.GetExArgument getExArgument)
获取键 key 的值反序列化后对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getExObject(String key,
StringCommands.GetExArgument getExArgument,
Class<V> clazz)
获取键 key 的值反序列化为 clazz 指定类型后的对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getExObject(String key,
StringCommands.GetExArgument getExArgument,
TypeReference<V> type)
获取键 key 的值反序列化为 type 指定类型后的对象,并重置 key 的过期时间
详情说明 https://redis.io/commands/getex/
|
<V> V |
getObject(byte[] key)
获取键 key 相关联的字符串值,并将值反序列化为对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getObject(byte[] key,
Class<V> clazz)
获取键 key 相关联的字符串值,并将值反序列化为 clazz 指定的对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getObject(byte[] key,
TypeReference<V> type)
获取键 key 相关联的字符串值,并将值反序列化为 type 指定的对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getObject(String key)
获取键 key 相关联的字符串值,并将值反序列化为对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getObject(String key,
Class<V> clazz)
获取键 key 相关联的字符串值,并将值反序列化为 clazz 指定的对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getObject(String key,
TypeReference<V> type)
获取键 key 相关联的字符串值,并将值反序列化为 type 指定的对象
详情说明 http://redisdoc.com/string/get.html
|
<V> V |
getSet(byte[] key,
V value)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化后对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> V |
getSet(byte[] key,
V value,
Class<V> clazz)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化为 clazz 指定类型后的对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> V |
getSet(byte[] key,
V value,
TypeReference<V> type)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化为 type 指定类型后的对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> V |
getSet(String key,
V value)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化后对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> V |
getSet(String key,
V value,
Class<V> clazz)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化为 clazz 指定类型后的对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> V |
getSet(String key,
V value,
TypeReference<V> type)
将键 key 的值设为 value ,并返回键 key 在被设置之前的旧值反序列化为 type 指定类型后的对象
详情说明 http://redisdoc.com/string/getset.html
|
<V> List<V> |
mGetObject(byte[]... keys)
获取给定的一个或多个字符串键的值,并反序列化为对象
详情说明 http://redisdoc.com/string/mget.html
|
<V> List<V> |
mGetObject(byte[][] keys,
Class<V> clazz)
获取给定的一个或多个字符串键的值,并反序列化为 clazz 指定的对象
详情说明 http://redisdoc.com/string/mget.html
|
<V> List<V> |
mGetObject(byte[][] keys,
TypeReference<V> type)
获取给定的一个或多个字符串键的值,并反序列化为 type 指定的对象
详情说明 http://redisdoc.com/string/mget.html
|
<V> List<V> |
mGetObject(String... keys)
获取给定的一个或多个字符串键的值,并反序列化为对象
详情说明 http://redisdoc.com/string/mget.html
|
<V> List<V> |
mGetObject(String[] keys,
Class<V> clazz)
获取给定的一个或多个字符串键的值,并反序列化为 clazz 指定的对象
详情说明 http://redisdoc.com/string/mget.html
|
<V> List<V> |
mGetObject(String[] keys,
TypeReference<V> type)
获取给定的一个或多个字符串键的值,并反序列化为 type 指定的对象
详情说明 http://redisdoc.com/string/mget.html
|
default com.buession.lang.Status |
mSet(List<com.buession.lang.KeyValue<String,String>> values)
同时为多个键设置值,如果某个给定键已经存在 那么将使用新值去覆盖旧值
详情说明 http://redisdoc.com/string/mset.html
|
default com.buession.lang.Status |
mSetNx(List<com.buession.lang.KeyValue<String,String>> values)
当且仅当所有给定键都不存在时, 为所有给定键设置值
详情说明 http://redisdoc.com/string/msetnx.html
|
<V> com.buession.lang.Status |
pSetEx(byte[] key,
V value,
int lifetime)
将键 key 的值设置为 value ,并将键 key 的生存时间设置为 lifetime;
如果键 key 已经存在,那么将覆盖已有的值
详情说明 http://redisdoc.com/string/psetex.html
|
<V> com.buession.lang.Status |
pSetEx(String key,
V value,
int lifetime)
将键 key 的值设置为 value ,并将键 key 的生存时间设置为 lifetime;
如果键 key 已经存在,那么将覆盖已有的值
详情说明 http://redisdoc.com/string/psetex.html
|
<V> com.buession.lang.Status |
set(byte[] key,
V value)
将对象 value 序列化后关联到 key;
如果 key 已经持有其他值,SET 就覆写旧值,忽略类型
详情说明 http://redisdoc.com/string/set.html
|
<V> com.buession.lang.Status |
set(byte[] key,
V value,
StringCommands.SetArgument setArgument)
将字符串值 value 关联到 key;
如果 key 已经持有其他值,SET 就覆写旧值,忽略类型
详情说明 http://redisdoc.com/string/set.html
|
<V> com.buession.lang.Status |
set(String key,
V value)
将对象 value 序列化后关联到 key;
如果 key 已经持有其他值,SET 就覆写旧值,忽略类型
详情说明 http://redisdoc.com/string/set.html
|
<V> com.buession.lang.Status |
set(String key,
V value,
StringCommands.SetArgument setArgument)
将字符串值 value 关联到 key;
如果 key 已经持有其他值,SET 就覆写旧值,忽略类型
详情说明 http://redisdoc.com/string/set.html
|
<V> com.buession.lang.Status |
setEx(byte[] key,
V value,
int lifetime)
将键 key 的值设置为 value ,并将键 key 的生存时间设置为 lifetime;
如果键 key 已经存在,那么将覆盖已有的值
详情说明 http://redisdoc.com/string/setex.html
|
<V> com.buession.lang.Status |
setEx(String key,
V value,
int lifetime)
将键 key 的值设置为 value ,并将键 key 的生存时间设置为 lifetime;
如果键 key 已经存在,那么将覆盖已有的值
详情说明 http://redisdoc.com/string/setex.html
|
<V> com.buession.lang.Status |
setNx(byte[] key,
V value)
当键 key 不存在的情况下,将键 key 的值设置为 value
详情说明 http://redisdoc.com/string/setnx.html
|
<V> com.buession.lang.Status |
setNx(String key,
V value)
当键 key 不存在的情况下,将键 key 的值设置为 value
详情说明 http://redisdoc.com/string/setnx.html
|
append, append, decr, decr, decrBy, decrBy, get, get, getDel, getDel, getEx, getEx, getRange, getRange, getSet, getSet, incr, incr, incrBy, incrBy, incrByFloat, incrByFloat, mGet, mGet, mSet, mSetNx, pSetEx, pSetEx, set, set, set, set, setEx, setEx, setNx, setNx, setRange, setRange, strlen, strlen, substr, substr
<V> V getObject(String key)
V
- 值类型key
- Key<V> V getObject(byte[] key)
V
- 值类型key
- Key<V> V getObject(String key, Class<V> clazz)
V
- 值类型key
- Keyclazz
- 值对象类<V> V getObject(byte[] key, Class<V> clazz)
V
- 值类型key
- Keyclazz
- 值对象类<V> V getObject(String key, TypeReference<V> type)
V
- 值类型key
- Keytype
- 值类型引用TypeReference
<V> V getObject(byte[] key, TypeReference<V> type)
V
- 值类型key
- Keytype
- 值类型引用TypeReference
<V> V getExObject(String key, StringCommands.GetExArgument getExArgument)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数<V> V getExObject(byte[] key, StringCommands.GetExArgument getExArgument)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数<V> V getExObject(String key, StringCommands.GetExArgument getExArgument, Class<V> clazz)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数clazz
- 值对象类<V> V getExObject(byte[] key, StringCommands.GetExArgument getExArgument, Class<V> clazz)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数clazz
- 值对象类<V> V getExObject(String key, StringCommands.GetExArgument getExArgument, TypeReference<V> type)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数type
- 值类型引用TypeReference
<V> V getExObject(byte[] key, StringCommands.GetExArgument getExArgument, TypeReference<V> type)
V
- 值类型key
- KeygetExArgument
- Key 过期时间参数type
- 值类型引用TypeReference
<V> V getSet(String key, V value)
V
- 值类型key
- Keyvalue
- 新值<V> V getSet(byte[] key, V value)
V
- 值类型key
- Keyvalue
- 新值<V> V getSet(String key, V value, Class<V> clazz)
V
- 值类型key
- Keyvalue
- 新值clazz
- 值对象类<V> V getSet(byte[] key, V value, Class<V> clazz)
V
- 值类型key
- Keyvalue
- 新值clazz
- 值对象类<V> V getSet(String key, V value, TypeReference<V> type)
V
- 值类型key
- Keyvalue
- 新值type
- 值类型引用TypeReference
<V> V getSet(byte[] key, V value, TypeReference<V> type)
V
- 值类型key
- Keyvalue
- 新值type
- 值类型引用TypeReference
<V> V getDelObject(String key)
V
- 值类型key
- Key<V> V getDelObject(byte[] key)
V
- 值类型key
- Key<V> V getDelObject(String key, Class<V> clazz)
V
- 值类型key
- Keyclazz
- 值对象类<V> V getDelObject(byte[] key, Class<V> clazz)
V
- 值类型key
- Keyclazz
- 值对象类<V> V getDelObject(String key, TypeReference<V> type)
V
- 值类型key
- Keytype
- 值类型引用TypeReference
<V> V getDelObject(byte[] key, TypeReference<V> type)
V
- 值类型key
- Keytype
- 值类型引用TypeReference
<V> List<V> mGetObject(String... keys)
V
- 值类型keys
- 一个或多个 key<V> List<V> mGetObject(byte[]... keys)
V
- 值类型keys
- 一个或多个 key<V> List<V> mGetObject(String[] keys, Class<V> clazz)
V
- 值类型keys
- 一个或多个 keyclazz
- 值对象类<V> List<V> mGetObject(byte[][] keys, Class<V> clazz)
V
- 值类型keys
- 一个或多个 keyclazz
- 值对象类<V> List<V> mGetObject(String[] keys, TypeReference<V> type)
V
- 值类型keys
- 一个或多个 keytype
- 值类型引用TypeReference
<V> List<V> mGetObject(byte[][] keys, TypeReference<V> type)
V
- 值类型keys
- 一个或多个 keytype
- 值类型引用TypeReference
default com.buession.lang.Status mSet(List<com.buession.lang.KeyValue<String,String>> values)
values
- 键值对default com.buession.lang.Status mSetNx(List<com.buession.lang.KeyValue<String,String>> values)
values
- 键值对<V> com.buession.lang.Status pSetEx(String key, V value, int lifetime)
V
- 值类型key
- Keyvalue
- 值lifetime
- 生存时间(单秒:毫秒)<V> com.buession.lang.Status pSetEx(byte[] key, V value, int lifetime)
V
- 值类型key
- Keyvalue
- 值lifetime
- 生存时间(单秒:毫秒)<V> com.buession.lang.Status set(String key, V value)
V
- 值类型key
- Keyvalue
- 值<V> com.buession.lang.Status set(byte[] key, V value)
V
- 值类型key
- Keyvalue
- 值<V> com.buession.lang.Status set(String key, V value, StringCommands.SetArgument setArgument)
V
- 值类型key
- Keyvalue
- 值setArgument
- 参数<V> com.buession.lang.Status set(byte[] key, V value, StringCommands.SetArgument setArgument)
V
- 值类型key
- Keyvalue
- 值setArgument
- 参数<V> com.buession.lang.Status setEx(String key, V value, int lifetime)
V
- 值类型key
- Keyvalue
- 值lifetime
- 生存时间(单秒:秒)<V> com.buession.lang.Status setEx(byte[] key, V value, int lifetime)
V
- 值类型key
- Keyvalue
- 值lifetime
- 生存时间(单秒:秒)<V> com.buession.lang.Status setNx(String key, V value)
V
- 值类型key
- Keyvalue
- 值<V> com.buession.lang.Status setNx(byte[] key, V value)
V
- 值类型key
- Keyvalue
- 值Copyright © 2022 buession.com Inc.. All rights reserved.