Skip to content

Key Value Commands

Mambisi Zempare edited this page Apr 15, 2020 · 1 revision
SET key value [EX seconds]
GET key value
DEL key
KEYS pattern

Example (Using Cli)

> SET user.0 fred
"Ok"
> SET user.1 kwame
"Ok"
> SET anotherkey "will expire in a minute" EX 60
"Ok"
> GET user.0
"fred"
> KEYS user.*
"user.0"
"user.1"
> DEL user.1
"Ok"
Clone this wiki locally