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