Class RedisBackingStore
- java.lang.Object
-
- io.apiman.gateway.engine.redis.common.RedisBackingStore
-
- All Implemented Interfaces:
IBackingStore
public class RedisBackingStore extends Object implements IBackingStore
Provides a Redis backing store, whose keys are namespaced with a prefix. This is implemented using aRedissonClient.
-
-
Constructor Summary
Constructors Constructor Description RedisBackingStore(org.redisson.api.RedissonClient client, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(String key)<T> Tget(String key, Class<T> type)voidput(String key, Object value, long ttl)voidremove(String key)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apiman.gateway.engine.storage.store.IBackingStore
put
-
-
-
-
Constructor Detail
-
RedisBackingStore
public RedisBackingStore(org.redisson.api.RedissonClient client, String prefix)
-
-
Method Detail
-
put
public void put(String key, Object value, long ttl)
- Specified by:
putin interfaceIBackingStore
-
get
public <T> T get(String key, Class<T> type)
- Specified by:
getin interfaceIBackingStore
-
remove
public void remove(String key)
- Specified by:
removein interfaceIBackingStore
-
containsKey
public boolean containsKey(String key)
- Specified by:
containsKeyin interfaceIBackingStore
-
-