String
GETDEL
Return the value of the specified key and delete the key.
Arguments
keybodystrrequired
The key to get.
Response
required
The response is the value stored at the key or None if the key doesn't exist.
Example
redis.set("key", "value")assert redis.getdel("key") == "value"assert redis.get("key") == None