Uses of Class
org.springframework.data.redis.core.types.Expiration
Packages that use Expiration
Package
Description
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
Connection package for Lettuce Redis client.
Core package for integrating Redis with Spring concepts.
Redis domain specific types.
-
Uses of Expiration in org.springframework.data.redis.connection
Methods in org.springframework.data.redis.connection that return ExpirationModifier and TypeMethodDescriptionReactiveHashCommands.HashExpireCommand.getExpiration()@Nullable ExpirationReactiveHashCommands.HGetExCommand.getExpiration()@Nullable ExpirationReactiveHashCommands.HSetExCommand.getExpiration()ReactiveKeyCommands.ExpireCommand.getExpiration()ReactiveStringCommands.GetExCommand.getExpiration()Get theExpirationto apply.Methods in org.springframework.data.redis.connection that return types with arguments of type ExpirationMethods in org.springframework.data.redis.connection with parameters of type ExpirationModifier and TypeMethodDescriptionDefaultStringRedisConnection.applyExpiration(String key, Expiration expiration, ExpirationOptions options, String... fields) default BooleanRedisKeyCommands.applyExpiration(byte @NonNull [] key, @NonNull Expiration expiration, @NonNull ExpirationOptions options) DefaultedRedisConnection.applyHashFieldExpiration(byte[] key, Expiration expiration, ExpirationOptions options, byte[]... fields) Deprecated.DefaultStringRedisConnection.applyHashFieldExpiration(byte[] key, Expiration expiration, ExpirationOptions options, byte[]... fields) RedisHashCommands.applyHashFieldExpiration(byte @NonNull [] key, @NonNull Expiration expiration, byte @NonNull [] @NonNull ... fields) Apply a givenExpirationto the given fields.RedisHashCommands.applyHashFieldExpiration(byte @NonNull [] key, @NonNull Expiration expiration, @NonNull ExpirationOptions options, byte @NonNull [] @NonNull ... fields) ReactiveHashCommands.HashExpireCommand.expire(List<ByteBuffer> fields, Expiration expiration) Creates a newReactiveHashCommands.HashExpireCommand.ReactiveHashCommands.HGetExCommand.expire(List<ByteBuffer> fields, @Nullable Expiration expiration) Creates a newReactiveHashCommands.HGetExCommand.ReactiveKeyCommands.ExpireCommand.expire(ByteBuffer key, Expiration expiration) ReactiveStringCommands.SetCommand.expiring(Expiration expiration) AppliesExpiration.default byte[]DefaultedRedisConnection.getEx(byte[] key, Expiration expiration) Deprecated.in favor ofRedisCommandsProvider.stringCommands()}.byte @Nullable []DefaultStringRedisConnection.getEx(byte[] key, Expiration expiration) @Nullable StringDefaultStringRedisConnection.getEx(String key, Expiration expiration) default Mono<ByteBuffer> ReactiveStringCommands.getEx(ByteBuffer key, Expiration expiration) Return the value atkeyand expire the key by applyingExpiration.byte[]RedisStringCommands.getEx(byte @NonNull [] key, @NonNull Expiration expiration) Return the value atkeyand expire the key by applyingExpiration.StringRedisConnection.getEx(@NonNull String key, @NonNull Expiration expiration) Return the value atkeyand expire the key by applyingExpiration.default List<byte[]> DefaultedRedisConnection.hGetEx(byte[] key, @Nullable Expiration expiration, byte[]... fields) Deprecated.in favor ofRedisCommandsProvider.hashCommands()}.List<byte[]> DefaultStringRedisConnection.hGetEx(@NonNull byte[] key, @Nullable Expiration expiration, @NonNull byte[]... fields) DefaultStringRedisConnection.hGetEx(String key, Expiration expiration, String... fields) default Mono<List<ByteBuffer>> ReactiveHashCommands.hGetEx(ByteBuffer key, @Nullable Expiration expiration, List<ByteBuffer> fields) Get the value of one or more fields from hash at key and optionally set expiration time or time-to-live (TTL) for given fields.List<byte[]> RedisHashCommands.hGetEx(byte @NonNull [] key, @Nullable Expiration expiration, byte @NonNull [] @NonNull ... fields) Get the value of one or morefieldsfrom hash atkeyand optionally set expiration time or time-to-live (TTL) for givenfields.StringRedisConnection.hGetEx(@NonNull String key, Expiration expiration, @NonNull String @NonNull ... fields) Get the value of one or morefieldsfrom hash atkeyand optionally set expiration time or time-to-live (TTL) for givenfields.default BooleanDefaultedRedisConnection.hSetEx(byte[] key, Map<byte[], byte[]> hashes, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Deprecated.in favor ofRedisCommandsProvider.hashCommands()}.DefaultStringRedisConnection.hSetEx(@NonNull byte[] key, @NonNull Map<byte[], byte[]> hashes, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) DefaultStringRedisConnection.hSetEx(@NonNull String key, @NonNull Map<@NonNull String, String> hashes, RedisHashCommands.HashFieldSetOption condition, Expiration expiration) ReactiveHashCommands.hSetEx(ByteBuffer key, Map<ByteBuffer, ByteBuffer> fieldValueMap, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Set field-value pairs in hash at key with condition and expiration.RedisHashCommands.hSetEx(byte @NonNull [] key, @NonNull Map<byte[], byte[]> hashes, @NonNull RedisHashCommands.HashFieldSetOption hashFieldSetOption, @Nullable Expiration expiration) Set field-value pairs in hash at key with optional condition and expiration.StringRedisConnection.hSetEx(@NonNull String key, @NonNull Map<@NonNull String, String> hashes, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Set field-value pairs in hash at key with optional condition and expiration.ReactiveStringCommands.pSetEX(ByteBuffer key, ByteBuffer value, Expiration expireTimeout) Set key value pair andExpiration.default BooleanDefaultedRedisConnection.set(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.in favor ofRedisCommandsProvider.stringCommands()}.DefaultStringRedisConnection.set(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) DefaultStringRedisConnection.set(String key, String value, Expiration expiration, RedisStringCommands.SetOption option) ReactiveStringCommands.set(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option) Set value for key with expiration and options.RedisStringCommands.set(byte @NonNull [] key, byte @NonNull [] value, @NonNull Expiration expiration, @NonNull RedisStringCommands.SetOption option) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending onoption.StringRedisConnection.set(@NonNull String key, @NonNull String value, @Nullable Expiration expiration, @Nullable RedisStringCommands.SetOption option) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending onoption.ReactiveStringCommands.setEX(ByteBuffer key, ByteBuffer value, Expiration expireTimeout) Set key value pair andExpiration.default byte[]DefaultedRedisConnection.setGet(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.in favor ofRedisCommandsProvider.stringCommands()}.byte[]DefaultStringRedisConnection.setGet(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) default Mono<ByteBuffer> ReactiveStringCommands.setGet(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option) Set value for key with expiration and options.byte[]RedisStringCommands.setGet(byte @NonNull [] key, byte @NonNull [] value, @NonNull Expiration expiration, @NonNull RedisStringCommands.SetOption option) Setvalueforkey.ReactiveHashCommands.HSetExCommand.setWithConditionAndExpiration(Map<ByteBuffer, ByteBuffer> fieldValueMap, RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Creates a newReactiveHashCommands.HSetExCommandfor setting field-value pairs with condition and expiration.ReactiveStringCommands.GetExCommand.withExpiration(Expiration expiration) AppliesExpiration. -
Uses of Expiration in org.springframework.data.redis.connection.lettuce
Methods in org.springframework.data.redis.connection.lettuce with parameters of type ExpirationModifier and TypeMethodDescriptionstatic io.lettuce.core.SetArgsLettuceConverters.toSetArgs(@Nullable Expiration expiration, @Nullable RedisStringCommands.SetOption option) -
Uses of Expiration in org.springframework.data.redis.core
Methods in org.springframework.data.redis.core with parameters of type ExpirationModifier and TypeMethodDescriptiondefault ExpireChanges<HK> BoundHashFieldExpirationOperations.expire(Expiration expiration) ApplyExpirationto the bound hash key/hash fields without any additional constraints.BoundHashFieldExpirationOperations.expire(Expiration expiration, ExpirationOptions options) ApplyExpirationto the bound hash key/hash fields givenexpiration options.default ExpireChanges.ExpiryChangeStateBoundKeyExpirationOperations.expire(@NonNull Expiration expiration) ApplyExpirationto the bound key without any additional constraints.BoundKeyExpirationOperations.expire(@NonNull Expiration expiration, @NonNull ExpirationOptions options) ApplyExpirationto the bound key givenexpiration options.ExpireChanges<@NonNull HK> HashOperations.expire(@NonNull H key, @NonNull Expiration expiration, @NonNull ExpirationOptions options, @NonNull Collection<@NonNull HK> hashKeys) Apply the expiration for givenhashKeys.ReactiveHashOperations.expire(H key, Expiration expiration, ExpirationOptions options, Collection<HK> hashKeys) Set time to live for given hashKeys stored within key.ReactiveRedisOperations.expire(K key, Expiration expiration, ExpirationOptions options) Set the expiration for givenkey.ReactiveRedisTemplate.expire(K key, Expiration expiration, ExpirationOptions options) RedisOperations.expire(@NonNull K key, @NonNull Expiration expiration, @NonNull ExpirationOptions options) Set the expiration for givenkey.@Nullable ExpireChanges.ExpiryChangeStateRedisTemplate.expire(K key, Expiration expiration, ExpirationOptions options) BoundHashOperations.getAndExpire(@Nullable Expiration expiration, @NonNull Collection<@NonNull HK> hashFields) Get and optionally expire the value for givenhashFieldsfrom the hash at the bound key.HashOperations.getAndExpire(@NonNull H key, @Nullable Expiration expiration, @NonNull Collection<@NonNull HK> hashKeys) Get and optionally expire the value for givenhashKeysfrom hash atkey.ReactiveHashOperations.getAndExpire(H key, @Nullable Expiration expiration, Collection<HK> hashKeys) Get and optionally expire the value for givenhashKeysfrom hash atkey.voidBoundHashOperations.putAndExpire(Map<? extends @NonNull HK, ? extends HV> m, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Set the value of one or more fields using data provided inmat the bound key, and optionally set their expiration time or time-to-live (TTL).HashOperations.putAndExpire(@NonNull H key, @NonNull Map<? extends @NonNull HK, ? extends HV> m, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Set multiple hash fields to multiple values using data provided inmwith optional condition and expiration.ReactiveHashOperations.putAndExpire(H key, Map<? extends HK, ? extends HV> map, @NonNull RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Set multiple hash fields to multiple values using data provided inmwith optional condition and expiration. -
Uses of Expiration in org.springframework.data.redis.core.types
Methods in org.springframework.data.redis.core.types that return ExpirationModifier and TypeMethodDescriptionstatic ExpirationCreates newExpirationwith the providedTimeUnit.static ExpirationCreates a newExpirationwith the given, requiredDuration.static ExpirationExpiration.keepTtl()Obtain anExpirationthat indicates to keep the existing one, e.g. when sending aSETcommand.static ExpirationExpiration.milliseconds(long expirationTime) Creates a newExpirationinTimeUnit.MILLISECONDS.static ExpirationExpiration.persistent()Creates a new persistent, non-expiringExpiration.static ExpirationExpiration.seconds(long expirationTime) Creates a newExpirationinTimeUnit.SECONDS.static ExpirationExpiration.unixTimestamp(long unixTimestamp, TimeUnit timeUnit) Creates a newExpirationwith the given unix timestamp andTimeUnit.
RedisCommandsProvider.hashCommands()}.