Skip to content

GETDEL

Syntax

GETDEL key

GETDEL returns the value of the key and then deletes the key.

The command returns (nil) if the key does not exist.

Examples

localhost:7379> SET k v
OK OK
localhost:7379> GETDEL k
OK v
localhost:7379> GET k
(nil)