pyzor.engines.redis

Redis database engine.

class pyzor.engines.redis_.RedisDBHandle(fn, mode, max_age=None)[source]

Bases: pyzor.engines.common.BaseEngine

absolute_source = False
classmethod get_prefork_connections(fn, mode, max_age=None)[source]

Yields a number of database connections suitable for a Pyzor pre-fork server.

handles_one_step = True
items()[source]
iteritems()[source]
log = <Logger pyzord (NOTSET)>
report(*args, **kwargs)[source]
whitelist(*args, **kwargs)[source]
class pyzor.engines.redis_.ThreadedRedisDBHandle(fn, mode, max_age=None, bound=None)[source]

Bases: pyzor.engines.redis_.RedisDBHandle

pyzor.engines.redis_.decode_date(stamp)[source]

Return a datetime object from a Unix Timestamp.

pyzor.engines.redis_.encode_date(date)[source]

Convert the date to Unix Timestamp

pyzor.engines.redis_.safe_call(f)[source]

Decorator that wraps a method for handling database operations.