public function __construct(Ai1ec_Registry_Object $registry, $cache_dir) { parent::__construct($registry); $this->cache_dir = $cache_dir; }
/** * Deletes the data stored in cache. */ public function delete_data_from_persistence() { $this->cache_strategy->delete_data($this->key_for_persistance); }
/** * delete_matching_entries_from_persistence method * * Delete matching entries from persistance. * * @param string $pattern Expected pattern, to be contained within key * * @return int Count of entries deleted */ public function delete_matching_entries_from_persistence($pattern) { return $this->cache_strategy->delete_matching($pattern); }
public function __construct(Ai1ec_Registry_Object $registry, array $cache_dir) { parent::__construct($registry); $this->_cache_dir = $cache_dir['path']; $this->_cache_url = $cache_dir['url']; }
public function __construct(Ai1ec_Registry_Object $registry, Ai1ec_Option $option) { parent::__construct($registry); $this->model_option = $option; }