Provides backwards compatibility with older versions of redis-py that
changed arguments to some commands to be more Pythonic, sane, or by
accident.
|
pipeline(self,
transaction=True,
shard_hint=None)
Return a new pipeline object that can queue multiple commands for
later execution. |
source code
|
|
|
setex(self,
name,
value,
time)
Set the value of key ``name`` to ``value`` that expires in ``time``
seconds. |
source code
|
|
|
lrem(self,
name,
value,
num=0)
Remove the first ``num`` occurrences of elements equal to ``value``
from the list stored at ``name``. |
source code
|
|
|
zadd(self,
name,
*args,
**kwargs)
NOTE: The order of arguments differs from that of the official ZADD
command. |
source code
|
|
|
|
|
|
|
|
|
__init__(self,
host=' localhost ' ,
port=6379,
db=0,
password=None,
socket_timeout=None,
connection_pool=None,
charset=' utf-8 ' ,
errors=' strict ' ,
decode_responses=False,
unix_socket_path=None)
x.__init__(...) initializes x; see help(type(x)) for signature
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
bitop(self,
operation,
dest,
*keys)
Perform a bitwise operation using ``operation`` between ``keys`` and
store the result in ``dest``.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
eval(self,
script,
numkeys,
*keys_and_args)
Execute the LUA ``script``, specifying the ``numkeys`` the script
will touch and the key names and argument values in
``keys_and_args``.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getrange(self,
key,
start,
end)
Returns the substring of the string value stored at ``key``,
determined by the offsets ``start`` and ``end`` (both are inclusive)
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
getset(self,
name,
value)
Set the value at key ``name`` to ``value`` if key doesn't exist
Return the value at key ``name`` atomically
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hset(self,
name,
key,
value)
Set ``key`` to ``value`` within hash ``name`` Returns 1 if HSET
created a new field, otherwise 0
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msetnx(self,
mapping)
Sets each key in the ``mapping`` dict to its corresponding value if
none of the keys are already set
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sort(self,
name,
start=None,
num=None,
by=None,
get=None,
desc=False,
alpha=False,
store=None)
Sort and return the list, set or sorted set at ``name``.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zrange(self,
name,
start,
end,
desc=False,
withscores=False,
score_cast_func=<type 'float'>)
Return a range of values from sorted set ``name`` between ``start``
and ``end`` sorted in ascending order.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
zrangebyscore(self,
name,
min,
max,
start=None,
num=None,
withscores=False,
score_cast_func=<type 'float'>)
Return a range of values from the sorted set ``name`` with scores
between ``min`` and ``max``.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
|
|
|
zrevrange(self,
name,
start,
num,
withscores=False,
score_cast_func=<type 'float'>)
Return a range of values from sorted set ``name`` between ``start``
and ``num`` sorted in descending order.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
zrevrangebyscore(self,
name,
max,
min,
start=None,
num=None,
withscores=False,
score_cast_func=<type 'float'>)
Return a range of values from the sorted set ``name`` with scores
between ``min`` and ``max`` in descending order.
(Inherited from redis.client.StrictRedis) |
source code
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|