Create a CacheObserver that executes the same function for each kind of event.
Create a CacheObserver that executes the same function for each kind of event. For updates, the new value is passed into the provided function.
the generic type of the cache entries.
the callback to invoke when a file system event is detected.
the callback to invoke when an error occurs. By default, it's a no-op.