1 # -*- coding: utf-8 -*-
7 def __init__(self, **kwargs):
8 self.connection_settings = kwargs or {'host': 'localhost', 'port': 6379, 'db': 0}
11 return redis.Redis(**self.connection_settings)
14 self.connection_settings.update(d)
17 def connection_setup(**kwargs):
18 global connection, client
22 client = Client(**kwargs)
23 connection = client.redis()
32 connection = client.redis()
34 __all__ = ['connection_setup', 'get_client']