Registry / networking / lettuce-core

lettuce-core

JSON →
library7.5.2.RELEASEjavamavenunverified

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage supporting Cluster, Sentinel, Pipelining, Auto-Reconnect, and Codecs.

<dependency> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> <version>7.5.2.RELEASE</version> </dependency>
INSTALL
IMPORT
SIG · LETTUCE-CORE
L
lettuce-core
networkingjavav7.5.2.RELEASE
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedisClient
io.lettuce.core.RedisClient

Connects to a local Redis instance, sets and gets a key-value pair.

import io.lettuce.core.RedisClient; import io.lettuce.core.api.StatefulRedisConnection; import io.lettuce.core.api.sync.RedisCommands; public class Quickstart { public static void main(String[] args) { RedisClient client = RedisClient.create("redis://localhost"); StatefulRedisConnection<String, String> connection = client.connect(); RedisCommands<String, String> syncCommands = connection.sync(); syncCommands.set("key", "Hello, Redis!"); System.out.println(syncCommands.get("key")); connection.close(); client.shutdown(); } }
Debug
Known issues
gotchaLettuce 7.x uses Netty 5.x which may have compatibility issues with some environments.
fix
If you encounter issues, consider using Lettuce 6.x or ensure your Netty dependencies are aligned.
affects: >=7.0.0
Upgrade
Version history
7.5.2.RELEASElatest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Bingbot
1
Resources
lettuce-core — mvn dependency:get lettuce-core · libregistry