def create_redis_client(redis_url):
     client = None
     try:
         client = redis.StrictRedis(**parseRedisUrl(redis_url))
         client.config_get()  # test the connection
     except Exception as e:
         client = None
     return client
Beispiel #2
0
 def create_redis_client(redis_url):
     client = None
     try:
         client = redis.StrictRedis(**parseRedisUrl(redis_url))
         client.config_get()  # test the connection
     except Exception as e:
         client = None
     return client
Beispiel #3
0
 def create_redis_client(redis_url):
     client = None
     try:
         client = redis.StrictRedis(**parseRedisUrl(redis_url))
         client.config_get()  # test the connection
     except Exception as e:
         log.warning("Exception trying to connect to redis: {0}".format(e))
         client = None
     return client
Beispiel #4
0
 def create_redis_client(redis_url):
     client = None
     try:
         client = redis.StrictRedis(**parseRedisUrl(redis_url))
         client.config_get()  # test the connection
     except Exception as e:
         log.warning("Exception trying to connect to redis: {0}".format(e))
         client = None
     return client