/valkey-skills:migrate-jedis [API or pattern to migrate]from valkey-skills
Use when migrating Java from Jedis to Valkey GLIDE. Covers zero-code-change compatibility layer, native CompletableFuture rewrite, PubSub, Batch API, cluster mode. Not for greenfield Java apps - use valkey-glide-java 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 Jedis to the GLIDE client library.
| Area | Jedis | GLIDE |
|---|---|---|
| API model | Synchronous, returns values directly | Async - returns CompletableFuture, call .get() for sync |
| Configuration | JedisPool / JedisPoolConfig | GlideClientConfiguration.builder() |
| Connection model | Thread-per-connection pool | Single multiplexed connection per node |
| Multi-arg commands | Varargs: del("k1", "k2") | Array args: del(new String[]{"k1", "k2"}) |
| Expiry | Separate methods: setex(), psetex() | SetOptions.builder().expiry(Seconds(60L)) |
| Conditional SET | Separate setnx() | SetOptions.builder().conditionalSetOnlyIfNotExist() |
| Transactions | Transaction (extends Pipeline) | Batch(true) for atomic, Batch(false) for pipeline |
Drop-in wrapper implementing the Jedis API backed by GLIDE (GLIDE 2.1+). Add io.valkey:valkey-glide-jedis-compatibility and swap the classpath - existing redis.clients.jedis.Jedis code works without recompile.
Supported (GLIDE 2.3): Core string/hash/list/set, streams, sorted sets, geospatial, scripting/functions, ACL, server management, transactions (WATCH/MULTI/EXEC - see gotchas). Not yet supported: PubSub (JedisPubSub callbacks, sharded PubSub), pipelining (use native Batch API), CommandArguments/IParams builder pattern.
Migrate directly to the GLIDE native API for full feature access. See the API Mapping and Advanced Patterns reference files.
Jedis:
JedisPoolConfig poolConfig = new JedisPoolConfig();
poolConfig.setMaxTotal(10);
JedisPool pool = new JedisPool(poolConfig, "localhost", 6379);
try (Jedis jedis = pool.getResource()) { jedis.ping(); }
GLIDE:
GlideClientConfiguration config = GlideClientConfiguration.builder()
.address(NodeAddress.builder().host("localhost").port(6379).build())
.requestTimeout(5000)
.build();
try (GlideClient client = GlideClient.createClient(config).get()) { client.ping().get(); }
No connection pool configuration needed - GLIDE uses a single multiplexed connection.
| Jedis parameter | GLIDE equivalent |
|---|---|
| JedisPool(host, port) | NodeAddress.builder().host().port().build() |
| JedisPoolConfig.setMaxTotal() | Not needed - single multiplexed connection |
| password | ServerCredentials.builder().password().build() |
| database | databaseId() |
| ssl = true | useTLS(true) |
| timeout (ms) | requestTimeout() (ms) |
For native GLIDE migration (not using the compatibility layer):
valkey-glide Maven/Gradle dependency alongside JedisJedisPool.getResource() calls with the GLIDE client - no pool management needed.get() calls on all commands since GLIDE returns CompletableFuture<T>best-practices/production.md for timeout tuning, connection management, and observability setupFor the zero-code-change path using the Jedis compatibility layer, see the Migration Paths section above.
| Topic | File |
|---|---|
| Command-by-command API mapping (strings, hashes, lists, sets, sorted sets, delete, exists, cluster, errors) | api-mapping |
| Transactions, pipelines, Pub/Sub, Spring Data Valkey alternative | advanced-patterns |
multi(), use the returned Transaction object. HashSet<byte[]> operations degrade to O(n) because byte[].hashCode() returns identity hash.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./migrate-ioredisUse when migrating Node.js from ioredis to Valkey GLIDE. Covers API mapping, creation-time PubSub, reversed publish args, Batch API, TypeScript types. Not for greenfield Node.js apps - use valkey-glide-nodejs instead./migrate-lettuceUse 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./migrate-redis-pyUse when migrating Python from redis-py to Valkey GLIDE. Covers async-first API, bytes returns (no decode_responses), list args, PubSub, ExpirySet/ConditionalChange. Not for greenfield Python apps - use valkey-glide-python instead.