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

public function update($data)
{
    $this->delete();
    return $this->create($data);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback