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 voidclose()Longdel(byte[] key)Longdel(String key)Booleanexists(byte[] key)booleanexists(String key)Longhdel(byte[] key, byte[]... fields)byte[]hget(byte[] key, byte[] field)Map<byte[],byte[]>hgetAll(byte[] key)Map<String,String>hgetAll(String key)Stringhmset(byte[] key, Map<byte[],byte[]> fieldValues)Stringhmset(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)Stringrename(byte[] oldkey, byte[] newkey)Stringrename(String oldkey, String newkey)
-
-
-
Method Detail
-
hget
public byte[] hget(byte[] key, byte[] field)- Specified by:
hgetin interfaceRedisCommands
-
exists
public Boolean exists(byte[] key)
- Specified by:
existsin interfaceRedisCommands
-
exists
public boolean exists(String key)
- Specified by:
existsin interfaceRedisCommands
-
hmset
public String hmset(byte[] key, Map<byte[],byte[]> fieldValues)
- Specified by:
hmsetin interfaceRedisCommands
-
hmset
public String hmset(String key, Map<String,String> fieldValues)
- Specified by:
hmsetin interfaceRedisCommands
-
hgetAll
public Map<byte[],byte[]> hgetAll(byte[] key)
- Specified by:
hgetAllin interfaceRedisCommands
-
hgetAll
public Map<String,String> hgetAll(String key)
- Specified by:
hgetAllin interfaceRedisCommands
-
hdel
public Long hdel(byte[] key, byte[]... fields)
- Specified by:
hdelin interfaceRedisCommands
-
del
public Long del(byte[] key)
- Specified by:
delin interfaceRedisCommands
-
del
public Long del(String key)
- Specified by:
delin interfaceRedisCommands
-
rename
public String rename(byte[] oldkey, byte[] newkey)
- Specified by:
renamein interfaceRedisCommands
-
rename
public String rename(String oldkey, String newkey)
- Specified by:
renamein 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:
hscanin interfaceRedisCommands
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-