Class JedisClusterContainer
- java.lang.Object
-
- org.apache.storm.redis.common.container.JedisClusterContainer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,JedisCommandsContainer
public class JedisClusterContainer extends Object implements JedisCommandsContainer
Container for managing JedisCluster. Note that JedisCluster doesn't need to be pooled since it's thread-safe and it stores pools internally.
-
-
Constructor Summary
Constructors Constructor Description JedisClusterContainer(redis.clients.jedis.JedisCluster jedisCluster)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Release Container.Boolean
exists(String key)
Long
geoadd(String key, double longitude, double latitude, String member)
List<redis.clients.jedis.GeoCoordinate>
geopos(String key, String... members)
String
get(String key)
Boolean
hexists(String key, String field)
String
hget(String key, String field)
Long
hset(String key, String field, String value)
String
lpop(String key)
Long
pfadd(String key, String... elements)
long
pfcount(String key)
Long
rpush(String key, String... string)
Long
sadd(String key, String... member)
Long
scard(String key)
String
set(String key, String value)
Boolean
sismember(String key, String member)
Long
zadd(String key, double score, String member)
Long
zrank(String key, String member)
Double
zscore(String key, String member)
-
-
-
Method Detail
-
exists
public Boolean exists(String key)
- Specified by:
exists
in interfaceJedisCommandsContainer
-
get
public String get(String key)
- Specified by:
get
in interfaceJedisCommandsContainer
-
hget
public String hget(String key, String field)
- Specified by:
hget
in interfaceJedisCommandsContainer
-
geoadd
public Long geoadd(String key, double longitude, double latitude, String member)
- Specified by:
geoadd
in interfaceJedisCommandsContainer
-
geopos
public List<redis.clients.jedis.GeoCoordinate> geopos(String key, String... members)
- Specified by:
geopos
in interfaceJedisCommandsContainer
-
hexists
public Boolean hexists(String key, String field)
- Specified by:
hexists
in interfaceJedisCommandsContainer
-
hset
public Long hset(String key, String field, String value)
- Specified by:
hset
in interfaceJedisCommandsContainer
-
lpop
public String lpop(String key)
- Specified by:
lpop
in interfaceJedisCommandsContainer
-
pfadd
public Long pfadd(String key, String... elements)
- Specified by:
pfadd
in interfaceJedisCommandsContainer
-
pfcount
public long pfcount(String key)
- Specified by:
pfcount
in interfaceJedisCommandsContainer
-
rpush
public Long rpush(String key, String... string)
- Specified by:
rpush
in interfaceJedisCommandsContainer
-
sadd
public Long sadd(String key, String... member)
- Specified by:
sadd
in interfaceJedisCommandsContainer
-
scard
public Long scard(String key)
- Specified by:
scard
in interfaceJedisCommandsContainer
-
set
public String set(String key, String value)
- Specified by:
set
in interfaceJedisCommandsContainer
-
sismember
public Boolean sismember(String key, String member)
- Specified by:
sismember
in interfaceJedisCommandsContainer
-
zadd
public Long zadd(String key, double score, String member)
- Specified by:
zadd
in interfaceJedisCommandsContainer
-
zrank
public Long zrank(String key, String member)
- Specified by:
zrank
in interfaceJedisCommandsContainer
-
zscore
public Double zscore(String key, String member)
- Specified by:
zscore
in interfaceJedisCommandsContainer
-
close
public void close()
Release Container.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceJedisCommandsContainer
-
-