1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace Doctrine\Common\Cache;
- /**
- * Void cache driver. The cache could be of use in tests where you don`t need to cache anything.
- *
- * @link www.doctrine-project.org
- */
- class VoidCache extends CacheProvider
- {
- /**
- * {@inheritDoc}
- */
- protected function doFetch($id)
- {
- return false;
- }
- /**
- * {@inheritDoc}
- */
- protected function doContains($id)
- {
- return false;
- }
- /**
- * {@inheritDoc}
- */
- protected function doSave($id, $data, $lifeTime = 0)
- {
- return true;
- }
- /**
- * {@inheritDoc}
- */
- protected function doDelete($id)
- {
- return true;
- }
- /**
- * {@inheritDoc}
- */
- protected function doFlush()
- {
- return true;
- }
- /**
- * {@inheritDoc}
- */
- protected function doGetStats()
- {
- return;
- }
- }
|