summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorChoongmin Lee <choongmin@me.com>2014-04-24 23:28:46 +0900
committerChoongmin Lee <choongmin@me.com>2014-04-24 23:28:46 +0900
commit1fa744ae900061bf367e15af660fc6101a55f16d (patch)
treef4b973edb25494a3d8039ed9a6084ffb126e3d12 /redis/client.py
parentb54dee073199fff510fa068487505bf1de75310a (diff)
downloadredis-py-1fa744ae900061bf367e15af660fc6101a55f16d.tar.gz
Fix getset docstring
The old docstring was incorrect. See http://redis.io/commands/GETSET for more information.
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)