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
Was this page helpful?