Redis Online Editor
Try Redis commands online for free. Write one command per line and CodeCompiler prints each reply in redis-cli format. Strings, counters, lists, hashes, sets, sorted sets and key expiry (TTL) are supported. Each run starts with an empty database.
Strings and counters
SET greeting "Hello" GET greeting INCR page:views INCRBY page:views 5 SET session:1 abc EX 60 TTL session:1
Lists (queues)
RPUSH jobs build test deploy LPOP jobs LRANGE jobs 0 -1
Hashes (objects)
HSET user:1 name Asha city Pune HGET user:1 name HGETALL user:1
Sets and sorted sets
SADD skills go rust sql SISMEMBER skills go ZADD leaderboard 120 asha 95 ravi ZREVRANGE leaderboard 0 -1 WITHSCORES
Supported commands
SET, GET, MSET, MGET, INCR/DECR(BY), APPEND, DEL, EXISTS, KEYS, TYPE, RENAME, EXPIRE, TTL, PERSIST, LPUSH/RPUSH, LPOP/RPOP, LRANGE, LLEN, LINDEX, LSET, LREM, HSET, HGET, HMGET, HGETALL, HDEL, HKEYS, HVALS, HINCRBY, SADD, SREM, SMEMBERS, SISMEMBER, SCARD, SUNION, SINTER, SDIFF, ZADD, ZRANGE, ZREVRANGE, ZSCORE, ZINCRBY, ZRANK, ZREM, FLUSHALL, PING, ECHO.

