@Deprecated
public interface RedisSessionCommands
extends io.lettuce.core.dynamic.Commands
Session
instances.Modifier and Type | Method and Description |
---|---|
java.lang.String |
configSet(java.lang.String parameter,
java.lang.String value)
Deprecated.
Set a configuration parameter to the given value.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
del(byte[] key)
Deprecated.
Delete a key.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
deleteAttributes(byte[] sessionId,
byte[]... attributes)
Deprecated.
Removes a single attribute of a session.
|
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
expire(byte[] key,
long seconds)
Deprecated.
Set a key's time to live in seconds.
|
java.util.concurrent.CompletableFuture<java.util.Map<byte[],byte[]>> |
findSessionData(byte[] sessionId)
Deprecated.
Get all the fields and values in a hash.
|
java.util.concurrent.CompletableFuture<byte[]> |
get(byte[] key)
Deprecated.
Touch one or more keys.
|
java.util.concurrent.CompletableFuture<java.lang.Long> |
publish(byte[] channel,
byte[] message)
Deprecated.
Post a message to a channel.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
saveExpiry(byte[] expiryKey,
byte[] seconds)
Deprecated.
Save an expiry.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
saveSessionData(byte[] sessionId,
java.util.Map<byte[],byte[]> attributes)
Deprecated.
Set multiple hash fields to multiple values.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
setAttribute(byte[] sessionId,
byte[] attribute,
byte[] value)
Deprecated.
Set a single attribute of a session.
|
java.util.concurrent.CompletableFuture<java.lang.Long> |
zadd(byte[] key,
double score,
byte[] member)
Deprecated.
Add one or more members to a sorted set, or update its score if it already exists.
|
java.util.concurrent.CompletableFuture<java.util.List<byte[]>> |
zrangebyscore(byte[] key,
io.lettuce.core.Range<? extends java.lang.Number> range)
Deprecated.
Return a range of members in a sorted set, by score.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
zrem(byte[] key,
byte[] member)
Deprecated.
Remove an item from the given sorted set.
|
@Command(value="HMSET :sessionId :attributes") java.util.concurrent.CompletableFuture<java.lang.Void> saveSessionData(@Param(value="sessionId") byte[] sessionId, @Param(value="value") java.util.Map<byte[],byte[]> attributes)
sessionId
- The session IDattributes
- The attributes@Command(value="HSET :sessionId :attribute :value") java.util.concurrent.CompletableFuture<java.lang.Void> setAttribute(@Param(value="sessionId") byte[] sessionId, @Param(value="attribute") byte[] attribute, @Param(value="value") byte[] value)
sessionId
- The session IDattribute
- The attributevalue
- The value@Command(value="HDEL :sessionId :attributes") java.util.concurrent.CompletableFuture<java.lang.Void> deleteAttributes(@Param(value="sessionId") byte[] sessionId, @Param(value="attributes") byte[]... attributes)
sessionId
- The session IDattributes
- The attributes to delete@Command(value="HGETALL") java.util.concurrent.CompletableFuture<java.util.Map<byte[],byte[]>> findSessionData(byte[] sessionId)
sessionId
- The session IDkey
does not exist.@Command(value="SET :expiryKey :seconds EX :seconds") java.util.concurrent.CompletableFuture<java.lang.Void> saveExpiry(@Param(value="expiryKey") byte[] expiryKey, @Param(value="seconds") byte[] seconds)
expiryKey
- The expiry keyseconds
- The seconds until expirationjava.util.concurrent.CompletableFuture<java.lang.Void> del(byte[] key)
key
- The key to deletejava.util.concurrent.CompletableFuture<java.lang.Void> zrem(byte[] key, byte[] member)
key
- The key of the setmember
- The member to removejava.util.concurrent.CompletableFuture<byte[]> get(@Param(value="key") byte[] key)
key
- The key to getjava.util.concurrent.CompletableFuture<java.util.List<byte[]>> zrangebyscore(byte[] key, io.lettuce.core.Range<? extends java.lang.Number> range)
key
- The keyrange
- The rangejava.util.concurrent.CompletableFuture<java.lang.Long> zadd(byte[] key, double score, byte[] member)
key
- The keyscore
- The scoremember
- The memberThe number of elements added to the sorted sets, not including elements already existing for which the score was updated.
java.util.concurrent.CompletableFuture<java.lang.Boolean> expire(byte[] key, long seconds)
key
- The keyseconds
- The seconds type: long
true if the timeout was set. false if key
does not exist or the timeout could not
be set.
java.util.concurrent.CompletableFuture<java.lang.Long> publish(byte[] channel, byte[] message)
channel
- The channel type: keymessage
- The message type: valuejava.lang.String configSet(java.lang.String parameter, java.lang.String value)
parameter
- The parameter namevalue
- The parameter valueOK
when the configuration was set properly. Otherwise an error is returned.