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