. */ namespace Doctrine\Common\Cache; /** * Xcache cache driver. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision: 3938 $ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class XcacheCache extends AbstractCache { /** * {@inheritdoc} */ protected function _doFetch($id) { return $this->_doContains($id) ? xcache_get($id) : false; } /** * {@inheritdoc} */ protected function _doContains($id) { return xcache_isset($id); } /** * {@inheritdoc} */ protected function _doSave($id, $data, $lifeTime = false) { return xcache_set($id, $data, $lifeTime); } /** * {@inheritdoc} */ protected function _doDelete($id) { return xcache_unset($id); } }