Package io.lettuce.core
The Redis client package containing
RedisClient
for Redis Standalone and Redis Sentinel operations.-
Interface Summary Interface Description CompositeArgument Interface for composite command argument objects.ConnectionFuture<T> AConnectionFuture
represents the result of an asynchronous connection initialization.ConnectionId Connection identifier.ConnectionPoint Interface for a connection point described with a host and port or socket.GeoSearch.GeoPredicate Geo predicate specifying a search scope.GeoSearch.GeoRef<K> Geo reference specifying a search starting point.ReadFrom.Nodes Descriptor of nodes that are available for the current read operation.RedisChannelWriter Writer for a channel.RedisConnectionStateListener Simple interface for Redis connection state monitoring.RedisCredentials Provides credentials to access a secured Redis service.RedisCredentialsProvider Interface for loadingRedisCredentials
that are used for authentication.RedisCredentialsProvider.ImmediateRedisCredentialsProvider Extension toRedisCredentialsProvider
that resolves credentials immediately without the need to defer the credential resolution.RedisFuture<V> ARedisFuture
represents the result of an asynchronous computation, extendingCompletionStage
.SslOptions.Resource Supplier for aInputStream
representing a resource.TransactionResult Value interface for aMULTI
transaction result. -
Class Summary Class Description AbstractRedisAsyncCommands<K,V> An asynchronous and thread-safe API for a Redis connection.AbstractRedisClient Base Redis client.AbstractRedisReactiveCommands<K,V> A reactive and thread-safe API for a Redis connection.AclSetuserArgs Argument list builder for the Redis ACL SETUSER command.AclSetuserArgs.Builder Builder entry points forAclSetuserArgs
.BitFieldArgs Argument list builder for the Redis BITFIELD command.BitFieldArgs.BitFieldType Represents a bit field type with details about signed/unsigned and the number of bits.BitFieldArgs.Builder Builder entry points forBitFieldArgs
.BitFieldArgs.Offset Represents a bit field offset.ClientListArgs Argument list builder for the Redis CLIENT LIST command.ClientListArgs.Builder Builder entry points forClientListArgs
.ClientOptions Client Options to control the behavior ofRedisClient
.ClientOptions.Builder Builder forClientOptions
.CommandListenerWriter Writer for command listeners.CommandListenerWriter.CommandListenerMulticaster Wraps multiple command listeners into one multicaster.ConnectionBuilder Connection builder for connections.ConnectionEvents Close Events Facility.ConnectionEvents.Reconnect Internal event when a reconnect is initiated.ConnectionEvents.Reset Internal event when a channel is closed.ConnectionState Internal connection state representing the negotiatedProtocolVersion
and other options for connection initialization and connection state restoration.Consumer<K> Value object representing a Stream consumer within a consumer group.CopyArgs Argument list builder for the Redis COPY command.CopyArgs.Builder Builder entry points forCopyArgs
.EpollProvider Deprecated. UseEpollProvider
instead.ExpireArgs Argument list builder for the Redis EXPIRE commands (PEXPIRE, EXPIREAT, PEXPIREAT).ExpireArgs.Builder Builder entry points forExpireArgs
.GeoAddArgs Argument list builder for the Redis GEOADD command starting from Redis 6.2.GeoAddArgs.Builder Builder entry points forScanArgs
.GeoArgs Argument list builder for the Redis GEORADIUS and GEORADIUSBYMEMBER commands.GeoArgs.Builder Builder entry points forGeoArgs
.GeoCoordinates A tuple consisting of numerical geo data points to describe geo coordinates (longitude/latitude coordinates according to WGS84).GeoRadiusStoreArgs<K> Argument list builder for the Redis GEORADIUS command to store GEORADIUS results or GEORADIUS distances in a sorted set.GeoRadiusStoreArgs.Builder Builder entry points forGeoRadiusStoreArgs
.GeoSearch GeoValue<V> A Geo value extension toValue
.GeoWithin<V> Geo element within a certain radius.GetExArgs Argument list builder for the Redis GETEX command starting from Redis 6.2.GetExArgs.Builder Builder entry points forGetExArgs
.KeyScanArgs Argument list builder for the RedisSCAN
command.KeyScanArgs.Builder KeyScanCursor<K> Cursor providing a list of keys.KeyValue<K,V> A key-value container extension toValue
.KillArgs Argument list builder for the Redis CLIENT KILL command.KillArgs.Builder Builder entry points forKillArgs
.KqueueProvider Deprecated. since 6.0, useKqueueProvider
instead.LettuceFutures Utility toLettuceFutures.awaitAll(long, TimeUnit, Future[])
futures until they are done and to synchronize future execution usingLettuceFutures.awaitOrCancel(RedisFuture, long, TimeUnit)
.LettuceVersion Class that exposes the Lettuce version.Limit Value object for a slice of data (offset/count).LMoveArgs LMoveArgs.Builder Builder entry points forLMoveArgs
.LMPopArgs LMPopArgs.Builder Builder entry points forLMPopArgs
.LPosArgs Argument list builder for the Redis LPOS command.LPosArgs.Builder Builder entry points forLPosArgs
.MapScanCursor<K,V> Scan cursor for maps.MigrateArgs<K> Argument list builder for the Redis MIGRATE command.MigrateArgs.Builder Builder entry points forMigrateArgs
.OrderingReadFromAccessor Accessor forReadFrom
ordering.Range<T> Range
defines lower and upper boundaries to retrieve items from a sorted set.Range.Boundary<T> ReadFrom Defines from which Redis nodes data is read.RedisAsyncCommandsImpl<K,V> An asynchronous and thread-safe API for a Redis connection.RedisChannelHandler<K,V> Abstract base for every Redis connection.RedisClient A scalable and thread-safe Redis client supporting synchronous, asynchronous and reactive execution models.RedisConnectionStateAdapter Convenience adapter with an empty implementation of allRedisConnectionStateListener
callback methods.RedisReactiveCommandsImpl<K,V> A reactive and thread-safe API for a Redis Sentinel connection.RedisURI Redis URI.RedisURI.Builder Builder for Redis URI.RestoreArgs Argument list builder for the Redis RESTORE command.RestoreArgs.Builder Builder entry points forXAddArgs
.ScanArgs Argument list builder for the Redis scan commands (SCAN, HSCAN, SSCAN, ZSCAN).ScanArgs.Builder Builder entry points forScanArgs
.ScanCursor Generic Cursor data structure.ScanIterator<T> Scan command support exposed throughIterator
.ScanStream Scan command support exposed throughFlux
.ScoredValue<V> A scored-value extension toValue
.ScoredValueScanCursor<V> Cursor providing a list ofScoredValue
SetArgs Argument list builder for the Redis SET command starting from Redis 2.6.12.SetArgs.Builder Builder entry points forSetArgs
.ShutdownArgs Argument list builder for the Redis SHUTDOWN command.ShutdownArgs.Builder Builder entry points forShutdownArgs
.SocketOptions Options to configure low-level socket options for the connections kept to Redis servers.SocketOptions.Builder Builder forSocketOptions
.SocketOptions.KeepAliveOptions Extended Keep-Alive options (idle, interval, count).SocketOptions.KeepAliveOptions.Builder Builder forSocketOptions.KeepAliveOptions
.SocketOptions.TcpUserTimeoutOptions TCP_USER_TIMEOUT comes from RFC5482 , configuring this parameter can allow the user TCP to initiate a reconnection to solve this problem when the network is abnormal.SocketOptions.TcpUserTimeoutOptions.Builder Builder class forSocketOptions.TcpUserTimeoutOptions
.SortArgs Argument list builder for the Redis SORT command.SortArgs.Builder Builder entry points forSortArgs
.SslConnectionBuilder Connection builder for SSL connections.SslOptions Options to configure SSL options for the connections kept to Redis servers.SslOptions.Builder Builder forSslOptions
.StatefulRedisConnectionImpl<K,V> A thread-safe connection to a Redis server.StaticCredentialsProvider Static implementation ofRedisCredentialsProvider
.StrAlgoArgs Argument list builder for the Redis STRALGO command.StrAlgoArgs.Builder Builder entry points forStrAlgoArgs
.StreamMessage<K,V> A stream message and its id.StreamScanCursor Cursor result using the Streaming API.StringMatchResult Result for STRALGO command.StringMatchResult.MatchedPosition Match position in each string.StringMatchResult.Position Position range.TimeoutOptions Options for command timeouts.TimeoutOptions.Builder Builder forTimeoutOptions
.TimeoutOptions.TimeoutSource Source for the actual timeout to expire a particularRedisCommand
.TrackingArgs Argument list builder for the Redis CLIENT TRACKING command.TrackingArgs.Builder Builder entry points forTrackingArgs
.Value<V> A value container object which may or may not contain a non-null value.ValueScanCursor<V> Cursor providing a list of values.XAddArgs Argument list builder for the Redis XADD command.XAddArgs.Builder Builder entry points forXAddArgs
.XAutoClaimArgs<K> Argument list builder for the Redis XAUTOCLAIM command.XAutoClaimArgs.Builder Builder entry points forXAutoClaimArgs
.XClaimArgs Argument list builder for the Redis XCLAIM command.XClaimArgs.Builder Builder entry points forXAddArgs
.XGroupCreateArgs Argument list builder for the Redis XGROUP CREATE command.XGroupCreateArgs.Builder Builder entry points forXGroupCreateArgs
.XPendingArgs<K> Argument list builder for the Redis XPENDING command.XPendingArgs.Builder Builder entry points forXPendingArgs
.XReadArgs Argument list builder for the Redis XREAD and XREADGROUP commands.XReadArgs.Builder Builder entry points forXReadArgs
.XReadArgs.StreamOffset<K> Value object representing a Stream with its offset.XTrimArgs Argument list builder for the Redis XTRIM command.XTrimArgs.Builder Builder entry points forXTrimArgs
.ZAddArgs Argument list builder for the improved Redis ZADD command starting from Redis 3.0.2.ZAddArgs.Builder Builder entry points forScanArgs
.ZAggregateArgs ZAggregateArgs.Builder Builder entry points forScanArgs
.ZPopArgs ZPopArgs.Builder Builder entry points forScanArgs
.ZStoreArgs Argument list builder for the Redis ZUNIONSTORE and ZINTERSTORE commands.ZStoreArgs.Builder Builder entry points forScanArgs
. -
Enum Summary Enum Description AclCategory Enum object describing Redis ACL categories.BitFieldArgs.OverflowType Represents the overflow types for theOVERFLOW
subcommand argument.ClientOptions.DisconnectedBehavior Behavior of connections in disconnected state.FlushMode Enum object describing flushing mode.FunctionRestoreMode Restore mode forFUNCTION RESTORE
.GeoArgs.Sort Sort order.GeoArgs.Unit Supported geo unit.ScriptOutputType A Lua script returns one of the following types:ScriptOutputType.BOOLEAN
booleanScriptOutputType.INTEGER
64-bit integerScriptOutputType.STATUS
status stringScriptOutputType.VALUE
valueScriptOutputType.MULTI
of these typesScriptOutputType.OBJECT
result object defined by the RESP3 response Redis to Lua conversion table.SslVerifyMode Enumeration of SSL/TLS verification modes.StrAlgoArgs.By UnblockType Unblock type forCLIENT UNBLOCK
command. -
Exception Summary Exception Description RedisBusyException Exception that gets thrown when Redis is busy executing a Lua script with aBUSY
error response.RedisCommandExecutionException Exception for errors states reported by Redis.RedisCommandInterruptedException Exception thrown when the thread executing a redis command is interrupted.RedisCommandTimeoutException Exception thrown when the command waiting timeout is exceeded.RedisConnectionException Exception for connection failures.RedisException Exception thrown when Redis returns an error message, or when the client fails for any reason.RedisLoadingException Exception that gets thrown when Redis is loading a dataset into memory and replying with aLOADING
error response.RedisNoScriptException Exception that gets thrown when Redis indicates absence of a Lua script referenced by its SHA1 digest with aNOSCRIPT
error response.RedisReadOnlyException Exception that gets thrown when Redis replies with aREADONLY
error response.