update ( $data )

Updates an existing cache.

Access

public

Parameters

Parameter

Type

Required

Description

$data

mixed

Required

The data to cache.

Returns

Type

Description

boolean

Whether the operation was successful.

Source

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

public function update($data)
{
    if ($this->is_memcached)
    {
        return $this->memcache->replace($this->id, $data, $this->expires);
    }
    return $this->memcache->replace($this->id, $data, $this->gzip, $this->expires);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback