Class ReactiveHashCommands.HashExpireCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveHashCommands.HashFieldsCommand
org.springframework.data.redis.connection.ReactiveHashCommands.HashExpireCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveHashCommands
public static class ReactiveHashCommands.HashExpireCommand
extends ReactiveHashCommands.HashFieldsCommand
- Since:
- 3.5
- Author:
- Christoph Strobl, Mark Paluch, Tihomir Mateev
-
Method Summary
Modifier and TypeMethodDescriptionexpire(List<ByteBuffer> fields, long timeout, TimeUnit unit) Creates a newReactiveHashCommands.HashExpireCommand.expire(List<ByteBuffer> fields, Duration ttl) Creates a newReactiveHashCommands.HashExpireCommand.expire(List<ByteBuffer> fields, Expiration expiration) Creates a newReactiveHashCommands.HashExpireCommand.expireAt(List<ByteBuffer> fields, Instant ttl, TimeUnit precision) Creates a newReactiveHashCommands.HashExpireCommand.from(ByteBuffer key) withOptions(ExpirationOptions options) Methods inherited from class ReactiveHashCommands.HashFieldsCommand
getFieldsMethods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
expire
public static ReactiveHashCommands.HashExpireCommand expire(List<ByteBuffer> fields, long timeout, TimeUnit unit) Creates a newReactiveHashCommands.HashExpireCommand.- Parameters:
fields- thefieldnames to apply expiration totimeout- the actual timeoutunit- the unit of measure for thetimeout.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
expire
Creates a newReactiveHashCommands.HashExpireCommand.- Parameters:
fields- thefieldnames to apply expiration to.ttl- the actual timeout.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
expire
public static ReactiveHashCommands.HashExpireCommand expire(List<ByteBuffer> fields, Expiration expiration) Creates a newReactiveHashCommands.HashExpireCommand.- Parameters:
fields- thefieldnames to apply expiration toexpiration- theExpirationto apply to the given fields.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
expireAt
public static ReactiveHashCommands.HashExpireCommand expireAt(List<ByteBuffer> fields, Instant ttl, TimeUnit precision) Creates a newReactiveHashCommands.HashExpireCommand.- Parameters:
fields- thefieldnames to apply expiration tottl- the unix point in time when to expire the given fields.precision- can beTimeUnit.SECONDSorTimeUnit.MILLISECONDS.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
from
- Parameters:
key- the key from which to expire the fields from.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
withOptions
- Parameters:
options- additional options to be sent along with the command.- Returns:
- new instance of
ReactiveHashCommands.HashExpireCommand.
-
getExpiration
-
getOptions
-