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 journal provider.
17: *
18: * @author Jan Smitka
19: * @package Nette\Caching\Storages
20: */
21: interface ICacheJournal
22: {
23:
24: /**
25: * Writes entry information into the journal.
26: * @param string $key
27: * @param array $dependencies
28: * @return void
29: */
30: function write($key, array $dependencies);
31:
32:
33: /**
34: * Cleans entries from journal.
35: * @param array $conditions
36: * @return array of removed items or NULL when performing a full cleanup
37: */
38: function clean(array $conditions);
39:
40: }
41: