1: <?php
2:
3: namespace Guzzle\Cache;
4:
5: use Doctrine\Common\Cache\Cache;
6:
7: /**
8: * Null cache adapter
9: */
10: class NullCacheAdapter extends AbstractCacheAdapter
11: {
12: /**
13: * Empty constructor allows you to pass args to the NullCacheAdapter
14: */
15: public function __construct() {}
16:
17: /**
18: * {@inheritdoc}
19: */
20: public function contains($id, array $options = null)
21: {
22: return false;
23: }
24:
25: /**
26: * {@inheritdoc}
27: */
28: public function delete($id, array $options = null)
29: {
30: return true;
31: }
32:
33: /**
34: * {@inheritdoc}
35: */
36: public function fetch($id, array $options = null)
37: {
38: return false;
39: }
40:
41: /**
42: * {@inheritdoc}
43: */
44: public function save($id, $data, $lifeTime = false, array $options = null)
45: {
46: return true;
47: }
48: }
49: