12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
-
-
- namespace Doctrine\Common\Cache;
-
-
- class ZendDataCache extends CacheProvider
- {
-
-
- protected function doFetch($id)
- {
- return zend_shm_cache_fetch($id);
- }
-
-
-
- protected function doContains($id)
- {
- return (false !== zend_shm_cache_fetch($id));
- }
-
-
-
- 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);
- }
-
-
-
- protected function doFlush()
- {
- $namespace = $this->getNamespace();
- if (empty($namespace)) {
- return zend_shm_cache_clear();
- }
- return zend_shm_cache_clear($namespace);
- }
-
-
-
- protected function doGetStats()
- {
- return null;
- }
- }
|