WordPress at Your Fingertips
function is not described

SimplePie_Cache_Memcached::setData() private WP 1.0

Set the last modified time and data to Memcached

{} It's a method of the class: SimplePie_Cache_Memcached{}

No Hooks.


true|false. Success status


// private - for code of main (parent) class only
$result = $this->setData( $data );
$data (required)

Code of SimplePie_Cache_Memcached::setData() WP 5.8.3

private function setData($data) {

    if ($data !== false) {
        $this->cache->set($this->name . '_mtime', time(), (int)$this->options['extras']['timeout']);
        return $this->cache->set($this->name, $data, (int)$this->options['extras']['timeout']);

    return false;