Chuyển tới nội dung chính
kitlocal.dev

Tra cứu lệnh Redis

Chạy cục bộ

Xử lý 100% ngay trong trình duyệt. Dữ liệu đầu vào và kết quả không rời khỏi thiết bị.

Bảng tra cứu nhanh các lệnh Redis theo nhóm cấu trúc dữ liệu kèm mô tả chi tiết

Cách hoạt động

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.

Bộ lệnh sống còn

Vài lệnh nên học trước tiên.

43 lệnh

Phím tắt/Tìm kiếmJKDi chuyển mục chọnCSao chép lệnh đang chọnFĐánh dấu mục đang chọnEscXoá tìm kiếm

Keys, TTL & Strings

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

  • Cơ bản

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

    PING [message]

    Khi nào dùng

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

    Ví dụ

    PING

    Kết quả

    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.

Dùng thử trong công cụ KitLocal

Kiểm tra ngày 15 thg 11, 2026 · Đối chiếu với Redis 7.x CLI & Core Data Structures

Nguồn: Redis Commands Reference · Redis Data Types Guide

Hãy thay phần trong dấu ngoặc nhọn bằng giá trị của bạn. Lệnh lấy từ tài liệu chính thức, ví dụ đã được chạy thử trên phiên bản được ghi.