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