'port' => 11211,
'extras' => array
( 'timeout' => 3600, // one hour
'prefix' => 'simplepie_',
),
);
$this->options = SimplePie_Misc::
array_merge_recursive($this->options, SimplePie_Cache::
parse_URL($location));
$this->name =
$this->options
['extras'
]['prefix'
] .
md5("
$name:
$type"
);
$this->cache =
new Memcache();
$this->cache->
addServer($this->options
['host'
],
(int) $this->options
['port'
]);
} /**
* Save data to the cache
*
* @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
* @return bool Successfulness
*/
public function save($data) { if ($data instanceof SimplePie
) {