public class RedisCommandsAdapterJedisCluster extends Object implements RedisCommands, Closeable
Adapter class to make JedisCluster instance play with BinaryRedisCommands interface.
| Constructor and Description | 
|---|
| RedisCommandsAdapterJedisCluster(redis.clients.jedis.JedisCluster jedisCluster) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| Long | del(byte[] key) | 
| Long | del(String key) | 
| Boolean | exists(byte[] key) | 
| boolean | exists(String key) | 
| Long | hdel(byte[] key,
    byte[]... fields) | 
| byte[] | hget(byte[] key,
    byte[] field) | 
| Map<byte[],byte[]> | hgetAll(byte[] key) | 
| Map<String,String> | hgetAll(String key) | 
| String | hmset(byte[] key,
     Map<byte[],byte[]> fieldValues) | 
| String | hmset(String key,
     Map<String,String> fieldValues) | 
| redis.clients.jedis.ScanResult<Map.Entry<byte[],byte[]>> | hscan(byte[] key,
     byte[] cursor,
     redis.clients.jedis.ScanParams params) | 
| String | rename(byte[] oldkey,
      byte[] newkey) | 
| String | rename(String oldkey,
      String newkey) | 
public RedisCommandsAdapterJedisCluster(redis.clients.jedis.JedisCluster jedisCluster)
public byte[] hget(byte[] key,
                   byte[] field)
hget in interface RedisCommandspublic Boolean exists(byte[] key)
exists in interface RedisCommandspublic String hmset(byte[] key, Map<byte[],byte[]> fieldValues)
hmset in interface RedisCommandspublic Map<byte[],byte[]> hgetAll(byte[] key)
hgetAll in interface RedisCommandspublic Long hdel(byte[] key, byte[]... fields)
hdel in interface RedisCommandspublic Long del(byte[] key)
del in interface RedisCommandspublic Long del(String key)
del in interface RedisCommandspublic String rename(byte[] oldkey, byte[] newkey)
rename in interface RedisCommandspublic String rename(String oldkey, String newkey)
rename in interface RedisCommandspublic redis.clients.jedis.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.ScanParams params)
hscan in interface RedisCommandspublic boolean exists(String key)
exists in interface RedisCommandspublic Map<String,String> hgetAll(String key)
hgetAll in interface RedisCommandspublic String hmset(String key, Map<String,String> fieldValues)
hmset in interface RedisCommandspublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.