Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | abstract class midcom_services_cache_module |
||
23 | { |
||
24 | /** |
||
25 | * @var AdapterInterface |
||
26 | */ |
||
27 | protected $backend; |
||
28 | |||
29 | /** |
||
30 | * Initialize the module. This will initialize the class configuration |
||
31 | * and call the corresponding event handler. |
||
32 | */ |
||
33 | 1 | public function __construct(AdapterInterface $backend) |
|
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * Invalidate the cache completely, dropping all entries. The default implementation will |
||
40 | * drop all entries from the cache backend using AdapterInterface::clear(). |
||
41 | * Override this function if this behavior doesn't suit your needs. |
||
42 | */ |
||
43 | public function invalidate_all() |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Invalidate all cache objects related to the given GUID. |
||
50 | */ |
||
51 | abstract public function invalidate(string $guid, $object = null); |
||
52 | } |
||
53 |