@inject(app=Zsl, config=Config)<EOL><INDENT>def __init__(self, app, config):<DEDENT>
self._app = app<EOL>self._config = config<EOL>redis_conf = self._config.get('<STR_LIT>', {})<EOL>self._client = redis.StrictRedis(<EOL>host=redis_conf.get('<STR_LIT:host>'),<EOL>port=redis_conf.get('<STR_LIT:port>'),<EOL>db=redis_conf.get('<STR_LIT>', <NUM_LIT:0>),<EOL>password=redis_conf.get('<STR_LIT:password>')<EOL>)<EOL>self.logger = self._app.logger.getChild('<STR_LIT>')<EOL>self.logger.debug("<STR_LIT>")<EOL>self._cache_prefix = self._config[<EOL>'<STR_LIT>'] + '<STR_LIT::>' if '<STR_LIT>' in self._config else '<STR_LIT>'<EOL>
Abstraction layer for caching.