Esempio n. 1
0
 /**
  * 
  * Deletes the cache for this model.
  * 
  * Technically, this just increases the data version number.  This means
  * that older versions will no longer be valid, causing a cache miss.
  * 
  * The version entry is keyed under `$prefix/model/$model_name/data_version`.
  * 
  * @return void
  * 
  */
 public function delete()
 {
     $key = $this->_prefix . "/model" . "/{$this->_model->model_name}" . "/data_version";
     $this->_cache->increment($key);
 }