public class RedisStorageClient extends Object
| Constructor and Description |
|---|
RedisStorageClient(redis.clients.jedis.JedisPoolConfig config,
String host,
int port,
Long timeout,
String password) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(byte[] serializedKey)
Checks whether Redis cache storage contains specified key.
|
byte[] |
get(byte[] serializedKey)
Get value by specified key.
|
Map<byte[],byte[]> |
get(Stream<byte[]> serializedKey)
Get key/value map of all passed serialized keys.
|
boolean |
isClosed()
Checks if Redis connection pool is closed.
|
String |
put(byte[] serializedKey,
byte[] serializedValue,
Integer expirationDuration)
Put key/value into Redis binary storage.
|
public byte[] get(byte[] serializedKey)
serializedKey - serialized byte array keypublic Map<byte[],byte[]> get(Stream<byte[]> serializedKey)
serializedKey - serialized keys streampublic String put(byte[] serializedKey, byte[] serializedValue, Integer expirationDuration)
serializedKey - serialized byte array keyserializedValue - serialized byte array valuepublic boolean containsKey(byte[] serializedKey)
serializedKey - serialized byte array keypublic boolean isClosed()
Copyright © 2017 SDL Group. All rights reserved.