invalidate() public method

Marks a code as invalidate until $time.
public invalidate ( string $key, boolean | integer $time = null ) : boolean
$key string
$time boolean | integer
return boolean
示例#1
0
文件: Cacher.php 项目: jarves/jarves
 /**
  * Deletes a distributed cache
  *
  * @param string $key
  */
 public function deleteDistributedCache($key)
 {
     $this->fastCache->delete($key);
     //whe need to invalidate this cache, so other jarves servers refresh their cache
     $this->distributedCache->invalidate($key);
 }