diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2010-10-07 23:44:54 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2010-10-07 23:44:54 -0700 |
commit | 0c8715b40271488fb94497172c3d3dcd8e73b610 (patch) | |
tree | 2989ab5c423a299f2881588005448321c4949838 /redis/client.py | |
parent | e1306c03d4932cf0f6345335e3041e99d8829a82 (diff) | |
download | redis-py-0c8715b40271488fb94497172c3d3dcd8e73b610.tar.gz |
adjusted comments to reflect proper error returns
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/redis/client.py b/redis/client.py index 9e9b184..0cc3243 100644 --- a/redis/client.py +++ b/redis/client.py @@ -207,8 +207,9 @@ class Redis(threading.local): bool ), string_keys_to_dict( - 'DECRBY HLEN INCRBY LINSERT LLEN LPUSHX RPUSHX SCARD SDIFFSTORE SINTERSTORE ' - 'SUNIONSTORE ZCARD ZREMRANGEBYRANK ZREMRANGEBYSCORE ZREVRANK', + 'DECRBY HLEN INCRBY LINSERT LLEN LPUSHX RPUSHX SCARD SDIFFSTORE ' + 'SINTERSTORE SUNIONSTORE ZCARD ZREMRANGEBYRANK ZREMRANGEBYSCORE ' + 'ZREVRANK', int ), string_keys_to_dict( @@ -753,10 +754,11 @@ class Redis(threading.local): def linsert(self, name, where, refvalue, value): """ - Insert ``value`` in list ``name`` either immediately before or after [``where``] ``refvalue`` + Insert ``value`` in list ``name`` either immediately before or after + [``where``] ``refvalue`` - Returns positive int length of the list on success, -1 if ``refvalue`` is not in the list, - 0 if ``name`` is not a list. + Returns the new length of the list on success or -1 if ``refvalue`` + is not in the list. """ return self.execute_command('LINSERT', name, where, refvalue, value) |