Skip to main content
kitlocal.dev

Redis Command Reference

Runs locally

100% processed in your browser. Inputs and outputs never leave your device.

Searchable reference for Redis commands with examples

How it works

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.

Survival kit

The few commands to learn first.

43 commands

Keyboard shortcuts/Focus searchJKMove selectionCCopy selectedFBookmark selectedEscClear search

Keys, TTL & Strings

Store caches, distribute atomic locks (`SET ... NX EX`), counters, and expire keys.

  • Essential

    Verify Redis connectivity and measure round-trip liveness (`PONG`)

    PING [message]

    When to use it

    Standard healthcheck command returning `PONG` (or echoing optional message).

    Example

    PING

    Result

    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.

Try it in a KitLocal tool

Checked on Nov 15, 2026 · Checked against Redis 7.x CLI & Core Data Structures

Sources: Redis Commands Reference · Redis Data Types Guide

Replace anything in angle brackets with your own values. Commands come from the official documentation, and examples were run on the version shown.