1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004, 2011 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
11: */
12:
13:
14:
15: /**
16: * Cache journal provider.
17: *
18: * @author Jan Smitka
19: */
20: interface ICacheJournal
21: {
22:
23: /**
24: * Writes entry information into the journal.
25: * @param string $key
26: * @param array $dependencies
27: * @return void
28: */
29: function write($key, array $dependencies);
30:
31:
32: /**
33: * Cleans entries from journal.
34: * @param array $conditions
35: * @return array of removed items or NULL when performing a full cleanup
36: */
37: function clean(array $conditions);
38:
39: }