diff options
author | laixintao <glenn.lai@bosondata.com.cn> | 2017-08-03 10:39:28 +0800 |
---|---|---|
committer | laixintao <glenn.lai@bosondata.com.cn> | 2017-08-04 12:05:52 +0800 |
commit | 52739e76c290beade1623c9bb7d2fa35a4964992 (patch) | |
tree | 9fca13608e630fe87aaeef93fad22dc836400b52 /redis/client.py | |
parent | 2e4c35a93aa4b902a3c7c5aabd8f3d9e52718842 (diff) | |
download | redis-py-52739e76c290beade1623c9bb7d2fa35a4964992.tar.gz |
update documents for set()
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redis/client.py b/redis/client.py index 95a3cf3..f32f9b4 100755 --- a/redis/client.py +++ b/redis/client.py @@ -1144,11 +1144,11 @@ class StrictRedis(object): ``px`` sets an expire flag on key ``name`` for ``px`` milliseconds. - ``nx`` if set to True, set the value at key ``name`` to ``value`` if it - does not already exist. + ``nx`` if set to True, set the value at key ``name`` to ``value`` only + if it does not exist. - ``xx`` if set to True, set the value at key ``name`` to ``value`` if it - already exists. + ``xx`` if set to True, set the value at key ``name`` to ``value`` only + if it already exists. """ pieces = [name, value] if ex is not None: |