src/pyams_cache/handler/redis.py
changeset 1 e89686e172cd
parent 0 30591ce88556
child 12 6d51d3409b54
equal deleted inserted replaced
0:30591ce88556 1:e89686e172cd
    26 
    26 
    27 # Default Redis handler
    27 # Default Redis handler
    28 try:
    28 try:
    29     from redis import StrictRedis
    29     from redis import StrictRedis
    30 except ImportError:
    30 except ImportError:
    31     logger.debug("Missing ")
    31     logger.debug("Missing redis package. Can't init Redis cache handler.")
    32 else:
    32 else:
    33     @utility_config(name='redis', provides=ICacheHandler)
    33     @utility_config(name='redis', provides=ICacheHandler)
    34     class RedisCacheHandler(object):
    34     class RedisCacheHandler(object):
    35         """Redis cache handler utility"""
    35         """Redis cache handler utility"""
    36 
    36