Back to portfolioRedis CacheNext: Mara©

Redis CacheMade Easy

Try It Out

Sub-millisecond reads, keys that expire on schedule, and nothing to configure.

Try it out

A real cache running in your browser. Type a command or tap one.

Keys
0
Hits
0
Misses
0
Hit rate
0%

Keys

expiry
  • Nothing cached. Try SET.

Every command

Eight commands cover most of what a cache is for. All of them work in the playground above.

  • SET key value [EX seconds]

    Store a string, optionally with a time to live.

  • GET key

    Read a value. A miss returns (nil).

  • DEL key [key ...]

    Remove keys. Returns how many existed.

  • TTL key

    Seconds left. -1 means no expiry, -2 means the key is gone.

  • EXPIRE key seconds

    Put a time to live on a key that already exists.

  • INCR key

    Increment an integer, creating it at 0 if missing.

  • KEYS

    List every live key.

  • FLUSHALL

    Empty the cache.