public class RedisStorage extends Object
Redis Server Connection Manager
Provides helper methods for talking with redis.
Used to post process Concepts.
| Constructor and Description |
|---|
RedisStorage(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
<X> X |
contactRedis(java.util.function.Function<redis.clients.jedis.Jedis,X> function)
A helper function which acquires a connection to redis from the pool and then uses it for some operations.
|
public RedisStorage(redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool,
com.codahale.metrics.MetricRegistry metricRegistry)
public <X> X contactRedis(java.util.function.Function<redis.clients.jedis.Jedis,X> function)
X - The type of the result returned.function - The function which contactes redis and returns some resultCopyright © 2018 Grakn Labs Ltd. All rights reserved.