|
__init__(self,
host=' localhost ' ,
port=6379,
db=0,
password=None,
socket_timeout=None,
encoding=' utf-8 ' ,
encoding_errors=' strict ' ,
decode_responses=False,
parser_class=<class 'redis.connection.PythonParser'>)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
connect(self)
Connects to the Redis server if not already connected |
source code
|
|
|
on_connect(self)
Initialize the connection, authenticate and select a database |
source code
|
|
|
disconnect(self)
Disconnects from the Redis server |
source code
|
|
|
send_packed_command(self,
command)
Send an already packed command to the Redis server |
source code
|
|
|
send_command(self,
*args)
Pack and send a command to the Redis server |
source code
|
|
|
read_response(self)
Read the response from a previously sent command |
source code
|
|
|
encode(self,
value)
Return a bytestring representation of the value |
source code
|
|
|
pack_command(self,
*args)
Pack a series of arguments into a value Redis command |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|