public class RedisCommandsAdapterJedis extends Object implements RedisCommands, Closeable
Adapter class to make Jedis instance play with BinaryRedisCommands interface.
Constructor and Description |
---|
RedisCommandsAdapterJedis(redis.clients.jedis.Jedis resource) |
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 RedisCommandsAdapterJedis(redis.clients.jedis.Jedis resource)
public byte[] hget(byte[] key, byte[] field)
hget
in interface RedisCommands
public Boolean exists(byte[] key)
exists
in interface RedisCommands
public String hmset(byte[] key, Map<byte[],byte[]> fieldValues)
hmset
in interface RedisCommands
public Map<byte[],byte[]> hgetAll(byte[] key)
hgetAll
in interface RedisCommands
public Long hdel(byte[] key, byte[]... fields)
hdel
in interface RedisCommands
public Long del(byte[] key)
del
in interface RedisCommands
public Long del(String key)
del
in interface RedisCommands
public String rename(byte[] oldkey, byte[] newkey)
rename
in interface RedisCommands
public String rename(String oldkey, String newkey)
rename
in interface RedisCommands
public redis.clients.jedis.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.ScanParams params)
hscan
in interface RedisCommands
public boolean exists(String key)
exists
in interface RedisCommands
public Map<String,String> hgetAll(String key)
hgetAll
in interface RedisCommands
public String hmset(String key, Map<String,String> fieldValues)
hmset
in interface RedisCommands
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.