cacheFactory basically provides you with a place to store files in memory as a service. It provides an interface for interacting with the cache, and it is available anywhere you enter the service.
It does not seem to have anything concrete to do with invalidation. Just add a date key whenever you put () and check it.
Oliver's use is also excellent. Stream data to the cache through sockets, and then just get it from the cache. If you do not, you can create a service that handles cache validation. Submit data to the service. If this is new data, it adds a date key. If this is existing data, compare the dates.
It has the following methods:
- put, get, remove, removeAll, info, destroy
There really isn’t so much: Documentation
source share