Build a Redis command with correctly ordered keys, values, and expiry options.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A selected command and arguments are arranged according to Redis command documentation; values containing spaces are escaped for the preview. The result is text and does not connect to Redis.
Operation: set
Key: session:user123
Value: {"userId": 123, "role": "admin"}
TTL: 3600
SET session:user123 "{"userId": 123, "role": "admin"}" EX 3600
Cache debugging, expiry runbooks, and queue operations build Redis commands.