1: <?php
2:
3: /**
4: * This file is part of the Nette Framework.
5: *
6: * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
7: *
8: * This source file is subject to the "Nette license", and/or
9: * GPL license. For more information please see http://nette.org
10: * @package Nette\Caching
11: */
12:
13:
14:
15: /**
16: * Cache dummy storage.
17: *
18: * @author David Grudl
19: */
20: class DummyStorage extends Object implements ICacheStorage
21: {
22:
23: /**
24: * Read from cache.
25: * @param string key
26: * @return mixed|NULL
27: */
28: public function read($key)
29: {
30: }
31:
32:
33:
34: /**
35: * Writes item into the cache.
36: * @param string key
37: * @param mixed data
38: * @param array dependencies
39: * @return void
40: */
41: public function write($key, $data, array $dp)
42: {
43: }
44:
45:
46:
47: /**
48: * Removes item from the cache.
49: * @param string key
50: * @return void
51: */
52: public function remove($key)
53: {
54: }
55:
56:
57:
58: /**
59: * Removes items from the cache by conditions & garbage collector.
60: * @param array conditions
61: * @return void
62: */
63: public function clean(array $conds)
64: {
65: }
66:
67: }
68: