DEL

Since 1.1.0Keys

Syntax

DEL key [key ...]
  • Flags: write
  • ACL categories: @generic, @keyspace, @slow, @write
  • Arity: -2

Deletes the given keys, of any type. Keys that do not exist are skipped.

Reply

  • The number of keys deleted.

Examples

> SET a 1
OK
> SET b 2
OK
> DEL a b missing
(integer) 2