Memorust

Supported commands

The subset of Redis commands implemented by Memorust.

Memorust implements a growing subset of the Redis command set. All commands use the RESP protocol, so they work from redis-cli or any Redis client.

Connection

PING

Replies with PONG.

Key / Value

SET key value
GET key
DEL key
EXISTS key

Example:

SET name Roberto
GET name
DEL name
EXISTS name

Expiration

SETEX key seconds value
EXPIRE key seconds
TTL key

SETEX sets a key with an expiration in seconds. EXPIRE adds a TTL to an existing key. TTL returns the remaining time to live.

Example:

SETEX session 60 abc123
TTL session
EXPIRE session 120

A background cleaner periodically reclaims keys whose TTL has elapsed.

Administration

INFO
FLUSHALL
AOFREWRITE
  • INFO: server information and statistics.
  • FLUSHALL: removes every key from the store.
  • AOFREWRITE: compacts the Append Only File. See Persistence.

On this page