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

public function update($data)
{
    $data = serialize($data);
    $data = $this->gzip ? gzcompress($data) : $data;

    return xcache_set($this->id, $data, $this->expires);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback