redis.set("key", "old-value") assert redis.getset("key", "newvalue") == "old-value"
Return the value of the specified key and replace it with a new value.
None
Was this page helpful?