/valkey-skills:migrate-lettuce [API or pattern to migrate]from valkey-skills
Use when migrating Java from Lettuce to Valkey GLIDE. Covers Spring Data Valkey path, native rewrite from RedisFuture to CompletableFuture, PubSub, no reactive API or codec equivalent. Not for Jedis migration - use migrate-jedis instead.
Ships in valkey-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when migrating a Java application from Lettuce to the GLIDE client library.
| Area | Lettuce | GLIDE |
|---|---|---|
| Async model | RedisFuture (extends CompletionStage) | CompletableFuture |
| Connection | RedisClient.create(uri) | GlideClient.createClient(config).get() |
| Cluster | RedisClusterClient | GlideClusterClient |
| Configuration | RedisURI + ClientOptions | GlideClientConfiguration.builder() |
| Connection model | Multiplexed (like GLIDE) | Multiplexed - single connection per node |
| Reactive API | Project Reactor (Flux/Mono) | Not available - async only |
| Codecs | Configurable via RedisCodec | String and GlideString (binary) |
| Transactions | MULTI/EXEC API | Batch(true) |
| Pipelines | Auto-flush or manual setAutoFlushCommands | Batch(false) |
Both Lettuce and GLIDE use async, multiplexed connections - structurally smoother migration than from Jedis or redis-py.
Lettuce:
RedisClient redisClient = RedisClient.create(
RedisURI.builder().withHost("localhost").withPort(6379).withDatabase(0).build());
StatefulRedisConnection<String, String> connection = redisClient.connect();
RedisAsyncCommands<String, String> commands = connection.async();
GLIDE:
GlideClientConfiguration config = GlideClientConfiguration.builder()
.address(NodeAddress.builder().host("localhost").port(6379).build())
.databaseId(0).requestTimeout(5000).build();
GlideClient client = GlideClient.createClient(config).get();
No separate connection and commands objects - the client exposes commands directly.
| Lettuce parameter | GLIDE equivalent |
|---|---|
| RedisURI.withHost() | NodeAddress.builder().host() |
| RedisURI.withPort() | NodeAddress.builder().port() |
| RedisURI.withDatabase() | .databaseId() |
| RedisURI.withPassword() | ServerCredentials.builder().password() |
| RedisURI.withSsl(true) | .useTLS(true) |
| RedisURI.withTimeout() | .requestTimeout() |
| ClientOptions.autoReconnect() | Built-in - always auto-reconnects |
| ClientResources | Not applicable - managed by Rust core |
Three migration paths exist, from least effort to most control:
For native migration, the key steps:
valkey-glide alongside Lettuce in your buildRedisFuture<T> with CompletableFuture<T> at each call siteStatefulRedisConnection / RedisAsyncCommands layers - GLIDE client exposes commands directly| Topic | File |
|---|---|
| Command-by-command API mapping (strings, hashes, lists, sets, sorted sets, delete, exists, cluster) | api-mapping |
| Transactions, pipelines, Pub/Sub, Spring Data Valkey alternative, compatibility layer status | advanced-patterns |
Mono.fromFuture(). Significant for Spring WebFlux - the reactive ReactiveRedisTemplate is only available with Lettuce in Spring Data Valkey.osdetector-gradle-plugin or os-maven-plugin. Uber JAR available from GLIDE 2.3.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (internet-dot/valkey-skills) — no native marketplace selected
npx claudepluginhub p/internet-dot-valkey-skills15 skills in this plugin
/glide-devUse when contributing to the GLIDE client - Rust core internals, language bindings (PyO3/JNI/NAPI/CGO/FFI), protocol layer, PubSub synchronizer, cluster topology, and build system. For using GLIDE in apps, see valkey-glide instead./glide-mqUse when building message queues with glide-mq. Covers queue setup, producer/consumer patterns, job scheduling, workflows, batch processing, streaming, and suspend/resume. Not for migrating from BullMQ (migrate-bullmq) or Bee-Queue (migrate-bee)./migrate-go-redisUse when migrating Go from go-redis to Valkey GLIDE. Covers Result[T] nil handling, CGO dependency, PubSub, SetWithOptions, Alpine/MUSL gotchas. Not for greenfield Go apps - use valkey-glide-go instead.