Beispiel #1
0
    def __init__(self, prefix='tori/session', redis_client=None, use_localhost_as_fallback=True):
        Base.__init__(self)

        self._redis = redis_client
        self._prefix = prefix

        self._use_localhost_as_fallback = use_localhost_as_fallback
Beispiel #2
0
    def __init__(self, prefix='tori/session', redis_client=None, use_localhost_as_fallback=True):
        if not __MODULE_ENABLED:
            raise ImportError('Failed to enable Redis session storage.')

        Base.__init__(self)

        self._redis = redis_client
        self._prefix = prefix

        self._use_localhost_as_fallback = use_localhost_as_fallback
Beispiel #3
0
    def __init__(self, collection):
        Base.__init__(self)

        self.collection = collection
Beispiel #4
0
    def __init__(self, db):
        Base.__init__(self)

        self.db = db