. */ namespace Doctrine\Common\Cache; /** * APC 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 ApcCache extends AbstractCache { /** * {@inheritdoc} */ protected function _doFetch($id) { return apc_fetch($id); } /** * {@inheritdoc} */ protected function _doContains($id) { $found = false; apc_fetch($id, $found); return $found; } /** * {@inheritdoc} */ protected function _doSave($id, $data, $lifeTime = false) { return (bool) apc_store($id, $data, $lifeTime); } /** * {@inheritdoc} */ protected function _doDelete($id) { return apc_delete($id); } }