一键导入
redis-diagnose
Troubleshoot common StackExchange.Redis.Extensions issues — timeouts, connection failures, serialization problems, pool exhaustion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Troubleshoot common StackExchange.Redis.Extensions issues — timeouts, connection failures, serialization problems, pool exhaustion
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate StackExchange.Redis.Extensions configuration and DI registration from natural language requirements
Generate code patterns for StackExchange.Redis.Extensions — Streams, Geo, VectorSet, Hash, Pub/Sub, Sets, Compression
基于 SOC 职业分类
| name | redis-diagnose |
| description | Troubleshoot common StackExchange.Redis.Extensions issues — timeouts, connection failures, serialization problems, pool exhaustion |
Diagnose and fix common issues with StackExchange.Redis.Extensions.
When the user reports:
Symptoms: StackExchange.Redis.RedisTimeoutException
Check in order:
config.SyncTimeout = 10000; // 10 seconds
config.PoolSize = 10;
config.ConnectionSelectionStrategy = ConnectionSelectionStrategy.LeastLoaded;
services.AddRedisCompression<LZ4Compressor>();
ThreadPool.GetAvailableThreads(), increase min threadsSymptoms: SocketClosed, ConnectionFailed
Check:
redis-cli -h <host> -p <port> pingSymptoms: JsonException, InvalidOperationException, corrupt data
Check:
InvalidOperationException: Failed to decompress data from RedisGetAsync<int>() returns 0 (not null) for missing keys because default(int) is 0. Use GetAsync<int?>() to distinguish missing keys from actual zero values.Check:
Symptoms: All operations fail, logs show EventId 1003
Check:
IRedisClient and call client.ConnectionPoolManager.GetConnectionInformation()INFO clients on RedisCheck:
{ "Logging": { "LogLevel": { "StackExchange.Redis.Extensions.Core": "Debug" } } }
HashSet<string> for keys, not arrays)| EventId | Level | Meaning |
|---|---|---|
| 1001 | Info | Pool initialized successfully |
| 1003 | Warning | All connections disconnected — degraded mode |
| 1006 | Error | Pool initialization failed |
| 2001 | Error | Connection failed |
| 2002 | Warning | Connection restored |
| 4001 | Error | Pub/Sub handler threw exception |
Enable with:
{ "Logging": { "LogLevel": { "StackExchange.Redis.Extensions.Core": "Information" } } }