MatthiasMullie\Scrapbook\Adapters\Apc::get PHP 메소드

get() 공개 메소드

public get ( $key, &$token = null )
    public function get($key, &$token = null)
    {
        // check for values that were just stored in this request but have
        // actually expired by now
        if (isset($this->expires[$key]) && $this->expires[$key] < time()) {
            return false;
        }
        $value = $this->apcu_fetch($key, $success);
        if ($success === false) {
            $token = null;
            return false;
        }
        $token = serialize($value);
        return $value;
    }