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/cachemc.class.php | Toggle source view (8 lines) | View on GitHub

public function read()
{
    if ($this->is_memcached)
    {
        return $this->memcache->get($this->id);
    }
    return $this->memcache->get($this->id, $this->gzip);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback