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 $key
20: * @return void
21: */
22: function write($key, array $dependencies);
23:
24: /**
25: * Cleans entries from journal.
26: * @return array|null of removed items or null when performing a full cleanup
27: */
28: function clean(array $conditions);
29: }
30: