/valkey-skills:migrate-ioredis [API or pattern to migrate]from valkey-skills
Use 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.
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 Node.js application from ioredis to the GLIDE client library.
| Area | ioredis | GLIDE |
|---|---|---|
| Hash args | Spread pairs: hset("h", "k1", "v1", "k2", "v2") | Object: hset("h", {k1: "v1", k2: "v2"}) |
| Sorted set args | Interleaved: zadd("z", 1, "a", 2, "b") | Array of objects: zadd("z", [{element: "a", score: 1}]) |
| Expiry | Separate commands: setex, psetex | Options on set(): {expiry: {type, count}} |
| Multi-arg commands | Varargs or rest params | Array arguments |
| Connection model | Connection pool or single | Single multiplexed connection per node |
| Cluster | new Redis.Cluster([...]) | GlideClusterClient.createClient({...}) |
| Script caching | Manual defineCommand | Automatic via Script class |
| Events | EventEmitter (on("error")) | No event emitter - errors surface per-command |
ioredis:
const Redis = require("ioredis");
const redis = new Redis({ host: "localhost", port: 6379 });
GLIDE:
import { GlideClient } from "@valkey/valkey-glide";
const client = await GlideClient.createClient({
addresses: [{ host: "localhost", port: 6379 }],
requestTimeout: 5000,
});
| ioredis parameter | GLIDE equivalent |
|---|---|
| host, port | addresses: [{host, port}] |
| db | databaseId |
| password | credentials: {password} |
| username | credentials: {username, password} |
| connectTimeout | requestTimeout (covers full lifecycle) |
| tls: {} | useTls: true |
| retryStrategy | Built-in reconnection with connectionBackoff |
| maxRetriesPerRequest | Not applicable - GLIDE handles retries internally |
| lazyConnect: true | Default behavior in GLIDE |
No drop-in compatibility layer exists for Node.js. Migration approach:
@valkey/valkey-glide alongside ioredisioredis dependency| Topic | File |
|---|---|
| Command-by-command API mapping (strings, hashes, lists, sets, sorted sets, delete, exists, cluster) | api-mapping |
| Pipelines, transactions, Pub/Sub, Lua scripting, events, TypeScript | advanced-patterns |
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-jedisUse 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./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.