Redis online compiler

A redis-cli simulator. Start a line with [name] for another client. Runs in your browser.

Learn Redis →
commands.redis
# Online Redis (simulated redis-cli). One command per line.
SET greeting "Hello, Redis!"
GET greeting
INCR visits
INCR visits
ZADD leaderboard 1200 asha 950 rahul 1500 priya
ZREVRANGE leaderboard 0 -1 WITHSCORES
# Start a line with [name] to use another client:
[sub] SUBSCRIBE news
[pub] PUBLISH news "breaking!"
Terminal

Press Run to run the script on the left in a fresh Redis server, or type commands below.

127.0.0.1:6379>