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
PINGReplies with PONG.
Key / Value
SET key value
GET key
DEL key
EXISTS keyExample:
SET name Roberto
GET name
DEL name
EXISTS nameExpiration
SETEX key seconds value
EXPIRE key seconds
TTL keySETEX 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 120A background cleaner periodically reclaims keys whose TTL has elapsed.
Administration
INFO
FLUSHALL
AOFREWRITEINFO: server information and statistics.FLUSHALL: removes every key from the store.AOFREWRITE: compacts the Append Only File. See Persistence.