/valkey-skills:migrate-stackexchange [API or pattern to migrate]from valkey-skills
Use when migrating C#/.NET from StackExchange.Redis to Valkey GLIDE. Covers API mapping, async/await Task, no IDatabase layer, PubSub, Batch API (.NET 8.0+, preview). Not for greenfield C# apps - use valkey-glide-csharp 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 .NET application from StackExchange.Redis to the GLIDE client library.
Status: The GLIDE C# client is in preview (requires .NET 8.0+). APIs may change before GA.
| Area | StackExchange.Redis | GLIDE |
|---|---|---|
| Connection | ConnectionMultiplexer.Connect() | GlideClient.CreateClient(config) |
| Operations | IDatabase methods | Direct client methods |
| Async model | async/await with Task<T> | async/await with Task<T> (similar) |
| Configuration | Connection string or ConfigurationOptions | StandaloneClientConfigurationBuilder |
| Fire-and-forget | CommandFlags.FireAndForget | Not supported - all commands return results |
| Keys/values | RedisKey / RedisValue types | Strings |
| Transactions | ITransaction with conditions | Batch API |
| Connection model | Multiplexed | Multiplexed (single connection per node) |
Both libraries use multiplexed connections and async/await.
StackExchange.Redis:
var muxer = ConnectionMultiplexer.Connect("localhost:6379");
IDatabase db = muxer.GetDatabase();
GLIDE:
var config = new StandaloneClientConfigurationBuilder()
.WithAddress("localhost", 6379).Build();
await using var client = await GlideClient.CreateClient(config);
No IDatabase layer - commands are called directly on the client instance.
| StackExchange.Redis | GLIDE equivalent |
|---|---|
EndPoints.Add(host, port) | .WithAddress(host, port) |
Password | .WithCredentials(username, password) |
DefaultDatabase | .WithDatabaseId(id) |
Ssl = true | .WithTls(true) |
ConnectTimeout | .WithRequestTimeout(ms) |
SyncTimeout | Part of WithRequestTimeout |
AllowAdmin | Not applicable |
AbortOnConnectFail | GLIDE always retries - configure via backoff strategy |
No drop-in compatibility layer exists for C#. The GLIDE C# client intentionally mirrors StackExchange.Redis naming to reduce effort. Migration approach:
Valkey.Glide NuGet package alongside StackExchange.RedisIDatabase calls with direct client callsRedisKey/RedisValue types with plain stringsCommandFlags.FireAndForget usage - use batching for throughputStackExchange.Redis NuGet package once all services are migratedGLIDE C# is in preview - evaluate feature coverage before committing to production migration.
| Topic | File |
|---|---|
| Command-by-command API mapping (strings, hashes, lists, sets, sorted sets, delete, exists, cluster) | api-mapping |
| Transactions, Pub/Sub, key types, fire-and-forget, API compatibility | advanced-patterns |
GlideClient or GlideClusterClient explicitly.IDatabase layer. Commands are on the client directly. No GetDatabase(n) - set database in configuration.RedisKey/RedisValue wrappers. GLIDE uses plain strings.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 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.Generated from the plugin's indexed repository (internet-dot/valkey-skills) — no native marketplace selected
npx claudepluginhub p/internet-dot-valkey-skills