public interface RedisCommandsContainer extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the Jedis container.
|
void |
hset(String key,
String hashField,
String value)
Sets field in the hash stored at key to value.
|
void |
lpush(String listName,
String value)
Insert the specified value at the head of the list stored at key.
|
void |
pfadd(String key,
String element)
Adds all the element arguments to the HyperLogLog data structure
stored at the variable name specified as first argument.
|
void |
publish(String channelName,
String message)
Posts a message to the given channel.
|
void |
rpush(String listName,
String value)
Insert the specified value at the tail of the list stored at key.
|
void |
sadd(String setName,
String value)
Add the specified member to the set stored at key.
|
void |
set(String key,
String value)
Set key to hold the string value.
|
void |
zadd(String key,
String score,
String element)
Adds the specified member with the specified scores to the sorted set stored at key.
|
void hset(String key, String hashField, String value)
key
- Hash namehashField
- Hash fieldvalue
- Hash valuevoid rpush(String listName, String value)
listName
- Name of the Listvalue
- Value to be addedvoid lpush(String listName, String value)
listName
- Name of the Listvalue
- Value to be addedvoid sadd(String setName, String value)
setName
- Name of the Setvalue
- Value to be addedvoid publish(String channelName, String message)
channelName
- Name of the channel to which data will be publishedmessage
- the messagevoid set(String key, String value)
key
- the key name in which value to be setvalue
- the valuevoid pfadd(String key, String element)
key
- The name of the keyelement
- the elementvoid zadd(String key, String score, String element)
key
- The name of the Sorted Setscore
- Score of the elementelement
- element to be addedvoid close() throws IOException
IOException
- if the instance can not be closed properlyCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.