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: * Cleans entries from journal.
27: * @param array
28: * @return array|null of removed items or null when performing a full cleanup
29: */
30: function clean(array $conditions);
31: }
32: