コード例 #1
0
ファイル: xredis.py プロジェクト: strogo/Tori
    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
コード例 #2
0
ファイル: xredis.py プロジェクト: shiroyuki/Tori
    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
コード例 #3
0
ファイル: collection.py プロジェクト: shiroyuki/Tori
    def __init__(self, collection):
        Base.__init__(self)

        self.collection = collection
コード例 #4
0
ファイル: database.py プロジェクト: shiroyuki/Tori
    def __init__(self, db):
        Base.__init__(self)

        self.db = db