Esempio n. 1
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
Esempio n. 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
Esempio n. 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
Esempio n. 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