public function touch($key, $expiration = 0) {
    $result = $this->get($key, null, $cas_token);
    if ($result) {
      $result = $this->cas($cas_token, $key, $result, $expiration);
    }
    $this->result_code = $result ? self::RES_SUCCESS : self::RES_FAILURE;
    return $result;
  }
public function touch($key, $expiration = 0) {
    $result = $this->get($key, null, $cas_token);
    if ($result) {
      $result = $this->cas($cas_token, $key, $result, $expiration);
    }
    $this->result_code = $result ? self::RES_SUCCESS : self::RES_FAILURE;
    return $result;
  }
public function touch ( $ key , $ expiration = 0 ) { $ result = $ this -> get ( $ key , null , $ cas_token ) ; if ( $ result ) { $ result = $ this -> cas ( $ cas_token , $ key , $ result , $ expiration ) ; } $ this -> result_code = $ result ? self :: RES_SUCCESS : self :: RES_FAILURE ; return $ result ; }
Sets a new expiration time on an item.

@param string $key The key under which to append the value.
@param int $expiration The expiration time, defaults to 0.

@return bool true on success or false on failure.
Sets a new expiration time on an item .