touch() public method

Return value is a boolean true when the operation succeeds, or false on failure.
public touch ( string $key, integer $expire ) : boolean
$key string
$expire integer Time when item falls out of the cache: 0 = permanent (doesn't expires); under 2592000 (30 days) = relative time, in seconds from now; over 2592000 = absolute time, unix timestamp
return boolean
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function touch($key, $expire)
 {
     return $this->cache->touch($key, $expire);
 }