def __init__(self, config=None):
        """Constructor."""
        self.config = {
                       'base_path': 'cache/',
                       'cache_file_prefix': '',
                       'host': 'localhost',
                       'port': '6379',
                       'db': '0',
                       'prefix': 'Reco_1::',
                      }
        if config:
            self.config.update(config.get('cache'))
            self.config.update(config.get('redis'))
        self.base_path = self.config['base_path']
        self.prefix = self.config['cache_file_prefix']
def __init__ ( self , config = None ) : self . config = { 'base_path' : 'cache/' , 'cache_file_prefix' : '' , 'host' : 'localhost' , 'port' : '6379' , 'db' : '0' , 'prefix' : 'Reco_1::' , } if config : self . config . update ( config . get ( 'cache' ) ) self . config . update ( config . get ( 'redis' ) ) self . base_path = self . config [ 'base_path' ] self . prefix = self . config [ 'cache_file_prefix' ]
Constructor.