Prado\Caching\TDbCache::init PHP Method

init() public method

This method is required by the IModule interface. attach {@link doInitializeCache} to TApplication.OnLoadStateComplete event attach {@link doFlushCacheExpired} to TApplication.OnSaveState event
public init ( $config )
    public function init($config)
    {
        $this->getApplication()->attachEventHandler('OnLoadStateComplete', array($this, 'doInitializeCache'));
        $this->getApplication()->attachEventHandler('OnSaveState', array($this, 'doFlushCacheExpired'));
        parent::init($config);
    }