12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
-
-
- namespace Doctrine\Common\Cache;
-
-
- class ZendDataCache extends AbstractCache
- {
- public function __construct()
- {
- $this->setNamespace('doctrine::');
- }
-
-
-
- public function getIds()
- {
- throw new \BadMethodCallException("getIds() is not supported by ZendDataCache");
- }
-
-
-
- protected function _doFetch($id)
- {
- return zend_shm_cache_fetch($id);
- }
-
-
-
- protected function _doContains($id)
- {
- return (zend_shm_cache_fetch($id) !== FALSE);
- }
-
-
-
- protected function _doSave($id, $data, $lifeTime = 0)
- {
- return zend_shm_cache_store($id, $data, $lifeTime);
- }
-
-
-
- protected function _doDelete($id)
- {
- return zend_shm_cache_delete($id);
- }
- }
|