read ()

Reads a cache.

Access

public

Returns

Type

Description

mixed

Either the content of the cache object, or boolean false.

Source

Method defined in lib/cachecore/cacheapc.class.php | Toggle source view (10 lines) | View on GitHub

public function read()
{
    if ($data = apc_fetch($this->id))
    {
        $data = $this->gzip ? gzuncompress($data) : $data;
        return unserialize($data);
    }

    return false;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback