public interface CacheWriter<K,V> extends DataAwareCustomization<K,V>Writer for write-through configurations. Any mutation of the cache via the
Cache.remove(Object)will cause a writer call.
- Jens Wilke
writeCalled when the value was updated or inserted into the cache.
Calling cache operations: It is illegal to call any cache methods from this method. This may have an undesired effect and can cause a deadlock.
deleteCalled when a mapping is removed from the cache. The removal was done by
Cache.removeAll(). An expiry does not trigger a call to this method.