Package | Description |
---|---|
io.lettuce.core |
The Redis client package containing
RedisClient for Redis Standalone and Redis Sentinel operations. |
io.lettuce.core.cluster |
Client for Redis Cluster, see
RedisClusterClient . |
io.lettuce.core.protocol |
Redis protocol layer abstraction.
|
Modifier and Type | Method and Description |
---|---|
DecodeBufferPolicy |
ClientOptions.getDecodeBufferPolicy()
Returns the
DecodeBufferPolicy used to reclaim memory. |
Modifier and Type | Method and Description |
---|---|
ClientOptions.Builder |
ClientOptions.Builder.decodeBufferPolicy(DecodeBufferPolicy policy)
Set the policy to discard read bytes from the decoding aggregation buffer to reclaim memory.
|
Modifier and Type | Method and Description |
---|---|
ClusterClientOptions.Builder |
ClusterClientOptions.Builder.decodeBufferPolicy(DecodeBufferPolicy decodeBufferPolicy) |
Modifier and Type | Method and Description |
---|---|
static DecodeBufferPolicy |
DecodeBufferPolicies.always()
DecodeBufferPolicy that discards read bytes after each decoding phase. |
static DecodeBufferPolicy |
DecodeBufferPolicies.alwaysSome()
DecodeBufferPolicy that discards some read bytes after each decoding
phase. |
static DecodeBufferPolicy |
DecodeBufferPolicies.ratio(float bufferUsageRatio)
Ratio-based discard policy that considers the capacity vs. usage of the aggregation buffer.
|
Copyright © 2024 lettuce.io. All rights reserved.