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:
11: /**
12: * Cache journal provider.
13: *
14: * @author Jan Smitka
15: */
16: interface IJournal
17: {
18:
19: /**
20: * Writes entry information into the journal.
21: * @param string
22: * @param array
23: * @return void
24: */
25: function write($key, array $dependencies);
26:
27:
28: /**
29: * Cleans entries from journal.
30: * @param array
31: * @return array of removed items or NULL when performing a full cleanup
32: */
33: function clean(array $conditions);
34:
35: }
36: