DEL
Single-key request only. Requests with multiple keys are not yet supported.
Synopsis
DEL key
This command deletes the given key
.
Return value
Returns number of keys that were removed.
Examples
$ SET yuga1 "America"
"OK"
$ SET yuga2 "Africa"
"OK"
$ DEL yuga1
1
$ DEL not_a_key
0
$ DEL yuga1 yuga2
"ERR del: Wrong number of arguments"
See also
exists
, flushall
, flushdb
, get
, getrange
, hdel
, hexists
, hget
, hset
, hincrby
, sadd
, set