Class RedisCommandsAdapterJedisCluster
- java.lang.Object
-
- org.apache.storm.redis.common.adapter.RedisCommandsAdapterJedisCluster
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RedisCommands
public class RedisCommandsAdapterJedisCluster extends Object implements RedisCommands, Closeable
Adapter class to make JedisCluster instance play with BinaryRedisCommands interface.
-
-
Constructor Summary
Constructors Constructor Description RedisCommandsAdapterJedisCluster(redis.clients.jedis.JedisCluster jedisCluster)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.resps.ScanResult<Map.Entry<byte[],byte[]>>
hscan(byte[] key, byte[] cursor, redis.clients.jedis.params.ScanParams params)
String
rename(byte[] oldkey, byte[] newkey)
String
rename(String oldkey, String newkey)
-
-
-
Method Detail
-
hget
public byte[] hget(byte[] key, byte[] field)
- Specified by:
hget
in interfaceRedisCommands
-
exists
public Boolean exists(byte[] key)
- Specified by:
exists
in interfaceRedisCommands
-
exists
public boolean exists(String key)
- Specified by:
exists
in interfaceRedisCommands
-
hmset
public String hmset(byte[] key, Map<byte[],byte[]> fieldValues)
- Specified by:
hmset
in interfaceRedisCommands
-
hmset
public String hmset(String key, Map<String,String> fieldValues)
- Specified by:
hmset
in interfaceRedisCommands
-
hgetAll
public Map<byte[],byte[]> hgetAll(byte[] key)
- Specified by:
hgetAll
in interfaceRedisCommands
-
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAll
in interfaceRedisCommands
-
hdel
public Long hdel(byte[] key, byte[]... fields)
- Specified by:
hdel
in interfaceRedisCommands
-
del
public Long del(byte[] key)
- Specified by:
del
in interfaceRedisCommands
-
del
public Long del(String key)
- Specified by:
del
in interfaceRedisCommands
-
rename
public String rename(byte[] oldkey, byte[] newkey)
- Specified by:
rename
in interfaceRedisCommands
-
rename
public String rename(String oldkey, String newkey)
- Specified by:
rename
in interfaceRedisCommands
-
hscan
public redis.clients.jedis.resps.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.params.ScanParams params)
- Specified by:
hscan
in interfaceRedisCommands
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-