summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index c12d8b9..cb4eda4 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -766,8 +766,8 @@ class StrictRedis(object):
def getset(self, name, value):
"""
- Set the value at key ``name`` to ``value`` if key doesn't exist
- Return the value at key ``name`` atomically
+ Sets the value at key ``name`` to ``value``
+ and returns the old value at key ``name`` atomically.
"""
return self.execute_command('GETSET', name, value)