invalidate() 공개 메소드

Marks a code as invalidate until $time.
public invalidate ( string $key, boolean | integer $time = null ) : boolean
$key string
$time boolean | integer
리턴 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);
 }