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: * NCache 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: }