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.
Small toolkit mirroring the
java.util.atomic package in Redis.Package providing implementations for most of the
java.util collections on top of Redis.-
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, SetCondition condition, Expiration expiration) Deprecated.in favor ofRedisCommandsProvider.stringCommands()}.DefaultStringRedisConnection.set(byte[] key, byte[] value, SetCondition condition, Expiration expiration) DefaultStringRedisConnection.set(@NonNull String key, @NonNull String value, SetCondition condition, Expiration expiration) DefaultStringRedisConnection.set(String key, String value, Expiration expiration, RedisStringCommands.SetOption option) ReactiveStringCommands.set(ByteBuffer key, ByteBuffer value, SetCondition condition, Expiration expiration) Set value for key with expiration and options.ReactiveStringCommands.set(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofReactiveStringCommands.set(ByteBuffer, ByteBuffer, SetCondition, Expiration).RedisStringCommands.set(byte @NonNull [] key, byte @NonNull [] value, @NonNull SetCondition condition, @NonNull Expiration expiration) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending onoption.default BooleanRedisStringCommands.set(byte @NonNull [] key, byte @NonNull [] value, @NonNull Expiration expiration, @NonNull RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofRedisStringCommands.set(byte[], byte[], SetCondition, Expiration).StringRedisConnection.set(@NonNull String key, @NonNull String value, SetCondition condition, Expiration expiration) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending oncondition.StringRedisConnection.set(@NonNull String key, @NonNull String value, @Nullable Expiration expiration, @Nullable RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofStringRedisConnection.set(String, String, SetCondition, Expiration).ReactiveStringCommands.setEX(ByteBuffer key, ByteBuffer value, Expiration expireTimeout) Set key value pair andExpiration.default byte[]DefaultedRedisConnection.setGet(byte[] key, byte[] value, SetCondition condition, Expiration expiration) Deprecated.in favor ofRedisCommandsProvider.stringCommands()}.byte[]DefaultStringRedisConnection.setGet(byte[] key, byte[] value, SetCondition condition, Expiration expiration) byte[]DefaultStringRedisConnection.setGet(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) DefaultStringRedisConnection.setGet(@NonNull String key, @NonNull String value, SetCondition condition, Expiration expiration) default Mono<ByteBuffer> ReactiveStringCommands.setGet(ByteBuffer key, ByteBuffer value, SetCondition condition, Expiration expiration) default Mono<ByteBuffer> ReactiveStringCommands.setGet(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofReactiveStringCommands.setGet(ByteBuffer, ByteBuffer, SetCondition, Expiration).byte[]RedisStringCommands.setGet(byte @NonNull [] key, byte @NonNull [] value, @NonNull SetCondition condition, @NonNull Expiration expiration) Setvalueforkey.default byte[]RedisStringCommands.setGet(byte @NonNull [] key, byte @NonNull [] value, @NonNull Expiration expiration, @NonNull RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofRedisStringCommands.set(byte[], byte[], SetCondition, Expiration).StringRedisConnection.setGet(@NonNull String key, @NonNull String value, SetCondition condition, Expiration expiration) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending oncondition.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) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1. -
Uses of Expiration in org.springframework.data.redis.core
Methods in org.springframework.data.redis.core with parameters of type ExpirationModifier and TypeMethodDescriptionSetSpec.expiration(Expiration expiration) Set the key with the given expiration.default 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.@Nullable BooleanBoundKeyOperations.expire(@NonNull Expiration expiration) Sets the key time-to-live/expiration.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) Set time to live for givenkey.RedisOperations.expire(@NonNull K key, @NonNull Expiration expiration, @NonNull ExpirationOptions options) Set the expiration for givenkey.RedisTemplate.expire(@NonNull K key, @NonNull Expiration expiration) @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.BoundValueOperations.getAndExpire(@NonNull Expiration expiration) Return the value at the bound key and expire the key by applyingexpiration.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.ValueOperations.getAndExpire(@NonNull K key, @NonNull Expiration expiration) Return the value atkeyand expire the key by applyingexpiration.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.default voidRedisOperations.restore(@NonNull K key, byte @NonNull [] value, @NonNull Expiration expiration) voidRedisOperations.restore(@NonNull K key, byte @NonNull [] value, @NonNull Expiration expiration, boolean replace) voidRedisTemplate.restore(K key, byte[] value, Expiration expiration, boolean replace) Executes the Redis restore command.voidBoundValueOperations.set(@NonNull V value, @NonNull Expiration expiration) Setvalueandexpirationfor the bound key.ReactiveValueOperations.set(K key, V value, Expiration expiration) Setvalueforkeywithexpiration.voidValueOperations.set(@NonNull K key, @NonNull V value, @NonNull Expiration expiration) Set thevalueandexpirationforkey.BoundValueOperations.setGet(@NonNull V value, @NonNull Expiration expiration) Set thevalueandexpirationfor the bound key.ReactiveValueOperations.setGet(K key, V value, Expiration expiration) Set thevalueandexpirationforkey.@Nullable VValueOperations.setGet(@NonNull K key, @NonNull V value, @NonNull Expiration expiration) Set thevalueandexpirationforkey.BoundValueOperations.setIfAbsent(@NonNull V value, @NonNull Expiration expiration) Set the bound key to hold the stringvalueandexpirationif the bound key is absent.ReactiveValueOperations.setIfAbsent(K key, V value, Expiration expiration) Setkeyto hold the stringvalueandexpirationifkeyis absent.ValueOperations.setIfAbsent(@NonNull K key, @NonNull V value, @NonNull Expiration expiration) Set thevalueandexpirationforkeyifkeyis absent.BoundValueOperations.setIfPresent(@NonNull V value, @NonNull Expiration expiration) Set the bound key to hold the stringvalueandexpirationif the bound key is present.ReactiveValueOperations.setIfPresent(K key, V value, Expiration expiration) Setkeyto hold the stringvalueifkeyis present.ValueOperations.setIfPresent(@NonNull K key, @NonNull V value, @NonNull Expiration expiration) Set thevalueandexpirationforkeyifkeyis present. -
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. -
Uses of Expiration in org.springframework.data.redis.support.atomic
Methods in org.springframework.data.redis.support.atomic with parameters of type ExpirationModifier and TypeMethodDescriptionRedisAtomicDouble.expire(Expiration expiration) RedisAtomicInteger.expire(Expiration expiration) RedisAtomicLong.expire(Expiration expiration) -
Uses of Expiration in org.springframework.data.redis.support.collections
Methods in org.springframework.data.redis.support.collections with parameters of type ExpirationModifier and TypeMethodDescriptionAbstractRedisCollection.expire(@NonNull Expiration expiration) DefaultRedisMap.expire(@NonNull Expiration expiration) RedisProperties.expire(@NonNull Expiration expiration)
RedisCommandsProvider.hashCommands()}.