MatthiasMullie\Scrapbook\Adapters\SQL::touch PHP Method

touch() public method

public touch ( $key, $expire )
    public function touch($key, $expire)
    {
        $expire = $this->expire($expire);
        $this->clearExpired();
        $statement = $this->client->prepare("UPDATE {$this->table}\n            SET e = :expire\n            WHERE k = :key");
        $statement->execute(array(':key' => $key, ':expire' => $expire));
        return $statement->rowCount() === 1;
    }