Interface StringBinaryCommands

All Superinterfaces:
BitBinaryCommands
All Known Subinterfaces:
JedisBinaryCommands
All Known Implementing Classes:
Jedis, JedisCluster, JedisPooled, JedisSentineled, JedisSharding, UnifiedJedis

public interface StringBinaryCommands extends BitBinaryCommands
  • Method Details

    • set

      String set(byte[] key, byte[] value)
    • set

      String set(byte[] key, byte[] value, SetParams params)
    • get

      byte[] get(byte[] key)
    • setGet

      byte[] setGet(byte[] key, byte[] value, SetParams params)
      WARNING: SetParams.get() MUST NOT be used with this method.
    • getDel

      byte[] getDel(byte[] key)
    • getEx

      byte[] getEx(byte[] key, GetExParams params)
    • 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

      String setex(byte[] key, long seconds, byte[] value)
    • psetex

      String psetex(byte[] key, long milliseconds, byte[] value)
    • mget

      List<byte[]> mget(byte[]... keys)
    • mset

      String mset(byte[]... keysvalues)
    • 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 LCSMatchResult strAlgoLCSKeys(byte[] keyA, byte[] keyB, StrAlgoLCSParams params)
      Deprecated.
      STRALGO LCS command will be removed from Redis 7. LCS can be used instead of this method.
    • lcs

      LCSMatchResult lcs(byte[] keyA, byte[] keyB, LCSParams params)
      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.