public interface RedisCommands
This interface represents Jedis methods exhaustively which are used on storm-redis.
This is a workaround since Jedis and JedisCluster doesn’t implement same interface for binary type of methods, and unify binary methods and string methods into one interface.
Modifier and Type | Method and Description |
---|---|
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) |
Boolean exists(byte[] key)
boolean exists(String key)
Long del(byte[] key)
String rename(byte[] oldkey, byte[] newkey)
byte[] hget(byte[] key, byte[] field)
Map<byte[],byte[]> hgetAll(byte[] key)
Long hdel(byte[] key, byte[]... fields)
redis.clients.jedis.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.ScanParams params)
Copyright © 2022 The Apache Software Foundation. All rights reserved.