- This is a framework based on redis,work as MESI Protocol;
- L1Cache restore only String data ,just like Map<String,String>
- providing an interface for cache read and write,
- regist self to the cache event bus as a listener for handling external cache events
- just like Map<String,String>
remote cache implement,default redis
CacheEventBus: 0. Send your own events to the external Topic (redis as default);
- Responsible for distributing received events to event listeners (such as cache controllers) within the JVM APP
Accept the Pub\Sub of the JVM app CacheEventBus
JVM local Cache,use like Map<String,String>
- CacheDataKey+CacheDataValue+CacheLineState
- here is the state list :Modified,Exclusive,Shared,Invalid
- When reading and writing the local cache,
- it is necessary to issue events according to different states of local cache
- to ensure cache in suitable state for use
please read test cases it's really simple