Interface KeyBinaryCommands

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

public interface KeyBinaryCommands
  • Method Details

    • exists

      boolean exists(byte[] key)
    • exists

      long exists(byte[]... keys)
    • persist

      long persist(byte[] key)
    • type

      String type(byte[] key)
    • dump

      byte[] dump(byte[] key)
    • restore

      String restore(byte[] key, long ttl, byte[] serializedValue)
    • restore

      String restore(byte[] key, long ttl, byte[] serializedValue, RestoreParams params)
    • expire

      long expire(byte[] key, long seconds)
    • expire

      long expire(byte[] key, long seconds, ExpiryOption expiryOption)
    • pexpire

      long pexpire(byte[] key, long milliseconds)
    • pexpire

      long pexpire(byte[] key, long milliseconds, ExpiryOption expiryOption)
    • expireTime

      long expireTime(byte[] key)
    • pexpireTime

      long pexpireTime(byte[] key)
    • expireAt

      long expireAt(byte[] key, long unixTime)
    • expireAt

      long expireAt(byte[] key, long unixTime, ExpiryOption expiryOption)
    • pexpireAt

      long pexpireAt(byte[] key, long millisecondsTimestamp)
    • pexpireAt

      long pexpireAt(byte[] key, long millisecondsTimestamp, ExpiryOption expiryOption)
    • ttl

      long ttl(byte[] key)
    • pttl

      long pttl(byte[] key)
    • touch

      long touch(byte[] key)
    • touch

      long touch(byte[]... keys)
    • sort

      List<byte[]> sort(byte[] key)
    • sort

      List<byte[]> sort(byte[] key, SortingParams sortingParams)
    • del

      long del(byte[] key)
    • del

      long del(byte[]... keys)
    • unlink

      long unlink(byte[] key)
    • unlink

      long unlink(byte[]... keys)
    • copy

      boolean copy(byte[] srcKey, byte[] dstKey, boolean replace)
    • rename

      String rename(byte[] oldkey, byte[] newkey)
    • renamenx

      long renamenx(byte[] oldkey, byte[] newkey)
    • sort

      long sort(byte[] key, SortingParams sortingParams, byte[] dstkey)
    • sort

      long sort(byte[] key, byte[] dstkey)
    • sortReadonly

      List<byte[]> sortReadonly(byte[] key, SortingParams sortingParams)
    • memoryUsage

      Long memoryUsage(byte[] key)
    • memoryUsage

      Long memoryUsage(byte[] key, int samples)
    • objectRefcount

      Long objectRefcount(byte[] key)
    • objectEncoding

      byte[] objectEncoding(byte[] key)
    • objectIdletime

      Long objectIdletime(byte[] key)
    • objectFreq

      Long objectFreq(byte[] key)
    • migrate

      String migrate(String host, int port, byte[] key, int timeout)
    • migrate

      String migrate(String host, int port, int timeout, MigrateParams params, byte[]... keys)
    • keys

      Set<byte[]> keys(byte[] pattern)
    • scan

      ScanResult<byte[]> scan(byte[] cursor)
    • scan

      ScanResult<byte[]> scan(byte[] cursor, ScanParams params)
    • scan

      ScanResult<byte[]> scan(byte[] cursor, ScanParams params, byte[] type)
    • randomBinaryKey

      byte[] randomBinaryKey()