Redis कमांड संदर्भ
उदाहरणों के साथ Redis कमांड का खोजने योग्य संदर्भ।
यह कैसे काम करता है
Redis is a single-threaded in-memory data-structure store: choose atomic O(1)/O(log N) operations per type, always prefer `SCAN`/`HSCAN`/`SSCAN`/`ZSCAN` over blocking `KEYS *`, and cap hot keys with TTL.
सर्वाइवल किट
वे कुछ कमांड जिन्हें सबसे पहले सीखना चाहिए।
43 कमांड
Keys, TTL & Strings
Store caches, distribute atomic locks (`SET ... NX EX`), counters, and expire keys.
- आवश्यक
Verify Redis connectivity and measure round-trip liveness (`PONG`)
PING [message]इसका उपयोग कब करें
Standard healthcheck command returning `PONG` (or echoing optional message).
उदाहरण
PINGपरिणाम
PONG
Hashes & Lists
Model multi-field objects compactly with Hashes and build FIFO queues/caps with Lists.
Sets, Sorted Sets & HyperLogLog
Track unique members, leaderboards, sliding-window rate limits, and cardinality.
Streams, Pub/Sub & Transactions
Publish realtime messages, consume persistent streams, and run atomic MULTI/EXEC.
Non-Blocking Scan, Memory & Ops
Inspect keys safely in production, check slow logs, memory usage, and persistence.