Package org.javalite.activejdbc.cache
Class CacheEventSquasher
java.lang.Object
org.javalite.activejdbc.cache.CacheEventSquasher
- All Implemented Interfaces:
AutoCloseable
This class exists in order to collapse multiple similar cache purge events into one.
This is especially crucial in cases of cascade deletes. In the absence of this class, the system would
generate unnecessary duplicate cache purge events.
- Author:
- yanchevsky
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CacheEventSquasher
public CacheEventSquasher()
-
-
Method Details
-
add
-
add
-
purge
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-