Package redis.clients.jedis.commands
Interface StringBinaryCommands
- All Superinterfaces:
BitBinaryCommands
- All Known Subinterfaces:
JedisBinaryCommands
- All Known Implementing Classes:
Jedis,JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
-
Method Summary
Modifier and TypeMethodDescriptionlongappend(byte[] key, byte[] value) longdecr(byte[] key) longdecrBy(byte[] key, long decrement) byte[]get(byte[] key) byte[]getDel(byte[] key) byte[]getEx(byte[] key, GetExParams params) byte[]getrange(byte[] key, long startOffset, long endOffset) byte[]getSet(byte[] key, byte[] value) longincr(byte[] key) longincrBy(byte[] key, long increment) doubleincrByFloat(byte[] key, double increment) Calculate the longest common subsequence of keyA and keyB.List<byte[]> mget(byte[]... keys) mset(byte[]... keysvalues) longmsetnx(byte[]... keysvalues) psetex(byte[] key, long milliseconds, byte[] value) set(byte[] key, byte[] value) setex(byte[] key, long seconds, byte[] value) byte[]WARNING:SetParams.get()MUST NOT be used with this method.longsetnx(byte[] key, byte[] value) longsetrange(byte[] key, long offset, byte[] value) strAlgoLCSKeys(byte[] keyA, byte[] keyB, StrAlgoLCSParams params) Deprecated.STRALGO LCS command will be removed from Redis 7.longstrlen(byte[] key) byte[]substr(byte[] key, int start, int end)
-
Method Details
-
set
-
set
-
get
byte[] get(byte[] key) -
setGet
WARNING:SetParams.get()MUST NOT be used with this method. -
getDel
byte[] getDel(byte[] key) -
getEx
-
setrange
long setrange(byte[] key, long offset, byte[] value) -
getrange
byte[] getrange(byte[] key, long startOffset, long endOffset) -
getSet
byte[] getSet(byte[] key, byte[] value) -
setnx
long setnx(byte[] key, byte[] value) -
setex
-
psetex
-
mget
-
mset
-
msetnx
long msetnx(byte[]... keysvalues) -
incr
long incr(byte[] key) -
incrBy
long incrBy(byte[] key, long increment) -
incrByFloat
double incrByFloat(byte[] key, double increment) -
decr
long decr(byte[] key) -
decrBy
long decrBy(byte[] key, long decrement) -
append
long append(byte[] key, byte[] value) -
substr
byte[] substr(byte[] key, int start, int end) -
strlen
long strlen(byte[] key) -
strAlgoLCSKeys
Deprecated.STRALGO LCS command will be removed from Redis 7.LCScan be used instead of this method. -
lcs
Calculate the longest common subsequence of keyA and keyB.- Parameters:
keyA-keyB-params-- Returns:
- According to LCSParams to decide to return content to fill LCSMatchResult.
-