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: * @package Nette\Caching\Storages
11: */
12:
13:
14:
15: /**
16: * Cache dummy storage.
17: *
18: * @author David Grudl
19: * @package Nette\Caching\Storages
20: */
21: class NDevNullStorage extends NObject implements ICacheStorage
22: {
23:
24: /**
25: * Read from cache.
26: * @param string key
27: * @return mixed|NULL
28: */
29: public function read($key)
30: {
31: }
32:
33:
34: /**
35: * Prevents item reading and writing. Lock is released by write() or remove().
36: * @param string key
37: * @return void
38: */
39: public function lock($key)
40: {
41: }
42:
43:
44: /**
45: * Writes item into the cache.
46: * @param string key
47: * @param mixed data
48: * @param array dependencies
49: * @return void
50: */
51: public function write($key, $data, array $dependencies)
52: {
53: }
54:
55:
56: /**
57: * Removes item from the cache.
58: * @param string key
59: * @return void
60: */
61: public function remove($key)
62: {
63: }
64:
65:
66: /**
67: * Removes items from the cache by conditions & garbage collector.
68: * @param array conditions
69: * @return void
70: */
71: public function clean(array $conditions)
72: {
73: }
74:
75: }
76: