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()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[] key, Expiration expiration, 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[] key, Expiration expiration, byte[]... fields) Apply a givenExpirationto the given fields.RedisHashCommands.applyHashFieldExpiration(byte[] key, Expiration expiration, ExpirationOptions options, byte[]... fields) ReactiveHashCommands.HashExpireCommand.expire(List<ByteBuffer> fields, Expiration expiration) Creates a newReactiveHashCommands.HashExpireCommand.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[]DefaultStringRedisConnection.getEx(byte[] key, Expiration expiration) DefaultStringRedisConnection.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[] key, Expiration expiration) Return the value atkeyand expire the key by applyingExpiration.StringRedisConnection.getEx(String key, Expiration expiration) Return the value atkeyand expire the key by applyingExpiration.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[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Setvalueforkeyapplying timeouts fromexpirationif set and inserting/updating values depending onoption.StringRedisConnection.set(String key, String value, Expiration expiration, 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[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Setvalueforkey.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(Expiration expiration, 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(Expiration expiration) ApplyExpirationto the bound key without any additional constraints.BoundKeyExpirationOperations.expire(Expiration expiration, ExpirationOptions options) ApplyExpirationto the bound key givenexpiration options.HashOperations.expire(H key, Expiration expiration, ExpirationOptions options, Collection<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(K key, Expiration expiration, ExpirationOptions options) Set the expiration for givenkey.RedisTemplate.expire(K key, Expiration expiration, ExpirationOptions options) -
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()}.