1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: */
11:
12: namespace Nette\Caching\Storages;
13:
14: use Nette;
15:
16:
17:
18: /**
19: * Cache dummy storage.
20: *
21: * @author David Grudl
22: */
23: class DevNullStorage extends Nette\Object implements Nette\Caching\IStorage
24: {
25:
26: /**
27: * Read from cache.
28: * @param string key
29: * @return mixed|NULL
30: */
31: public function read($key)
32: {
33: }
34:
35:
36:
37: /**
38: * Prevents item reading and writing. Lock is released by write() or remove().
39: * @param string key
40: * @return void
41: */
42: public function lock($key)
43: {
44: }
45:
46:
47:
48: /**
49: * Writes item into the cache.
50: * @param string key
51: * @param mixed data
52: * @param array dependencies
53: * @return void
54: */
55: public function write($key, $data, array $dp)
56: {
57: }
58:
59:
60:
61: /**
62: * Removes item from the cache.
63: * @param string key
64: * @return void
65: */
66: public function remove($key)
67: {
68: }
69:
70:
71:
72: /**
73: * Removes items from the cache by conditions & garbage collector.
74: * @param array conditions
75: * @return void
76: */
77: public function clean(array $conds)
78: {
79: }
80:
81: }
82: