This is the distributed cache controller. Use it if you want
to invalidate caches on a distributed backend (setDistributedCache() and getDistributedCache()).
You don't have to define the full key, instead you can pass only the starting part of the key.
This means, if you have following caches defined:
- news/list/2
- news/list/3
- news/list/4
- news/comments/134
- news/comments/51
you can mark all listing caches as invalid by calling
- invalidateCache('news/list');
or mark all caches as invalid which starts with news/ you can call:
- invalidateCache('news');
The invalidation mechanism explodes the key by / and checks all levels whether they're marked
as invalid (through a microsecond timestamp) or not.
Default is $time is mark all caches as invalid which are older than CURRENT.
This method is called by the Jarves\Configuration\Event::$clearCaches configuration