Arguments
str
required
The key to get.
Response
The response is the value stored at the key or
None if the key doesn’t exist.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.set("key", "value")
assert redis.getdel("key") == "value"
assert redis.get("key") == None
Return the value of the specified key and delete the key.
None if the key doesn’t exist.redis.set("key", "value")
assert redis.getdel("key") == "value"
assert redis.get("key") == None
Was this page helpful?