Package memtools :: Package storages :: Module redis :: Class RedisMemory
[hide private]

Class RedisMemory

source code


Memory gateway to a Redis server
Instance Methods [hide private]
 
__init__(self, expire=None, debug=False, *args, **kwargs)
redis.Redis help.
source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
expire(self, key, time) source code
 
__getattr__(self, attr) source code

Inherited from protocols.Memory: __call__, get, set

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, expire=None, debug=False, *args, **kwargs)
(Constructor)

source code 
redis.Redis help.
Parameters:
  • servers - List of servers to use. Please, read
Overrides: object.__init__

__getitem__(self, key)
(Indexing operator)

source code 
Overrides: protocols.Memory.__getitem__

__setitem__(self, key, value)
(Index assignment operator)

source code 
Overrides: protocols.Memory.__setitem__

__delitem__(self, key)
(Index deletion operator)

source code 
Overrides: protocols.Memory.__delitem__