flask_oauthlib/contrib/cache.py
def _redis(self, **kwargs):
        """Returns a :class:`RedisCache` instance"""
        kwargs.update(dict(
            host=self._config('REDIS_HOST', 'localhost'),
            port=self._config('REDIS_PORT', 6379),
            password=self._config('REDIS_PASSWORD', None),
            db=self._config('REDIS_DB', 0),
            key_prefix=self._config('KEY_PREFIX', None),
        ))
        return RedisCache(**kwargs)
def _redis(self, **kwargs):
        """Returns a :class:`RedisCache` instance"""
        kwargs.update(dict(
            host=self._config('REDIS_HOST', 'localhost'),
            port=self._config('REDIS_PORT', 6379),
            password=self._config('REDIS_PASSWORD', None),
            db=self._config('REDIS_DB', 0),
            key_prefix=self._config('KEY_PREFIX', None),
        ))
        return RedisCache(**kwargs)
def _redis ( self , * * kwargs ) : kwargs . update ( dict ( host = self . _config ( 'REDIS_HOST' , 'localhost' ) , port = self . _config ( 'REDIS_PORT' , 6379 ) , password = self . _config ( 'REDIS_PASSWORD' , None ) , db = self . _config ( 'REDIS_DB' , 0 ) , key_prefix = self . _config ( 'KEY_PREFIX' , None ) , ) ) return RedisCache ( * * kwargs )
Returns a :class:`RedisCache` instance
Returns a : class : RedisCache instance