1: <?php
2: /**
3: * This class provides a null cache storage driver.
4: *
5: * Copyright 2006-2007 Duck <duck@obala.net>
6: *
7: * See the enclosed file COPYING for license information (LGPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
9: *
10: * @author Duck <duck@obala.net>
11: * @category Horde
12: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
13: * @package Cache
14: */
15: class Horde_Cache_Storage_Null extends Horde_Cache_Storage_Base
16: {
17: /**
18: */
19: public function get($key, $lifetime = 0)
20: {
21: return false;
22: }
23:
24: /**
25: */
26: public function set($key, $data, $lifetime = 0)
27: {
28: }
29:
30: /**
31: */
32: public function exists($key, $lifetime = 0)
33: {
34: return false;
35: }
36:
37: /**
38: */
39: public function expire($key)
40: {
41: return false;
42: }
43:
44: /**
45: */
46: public function clear()
47: {
48: }
49:
50: }
51: