- Use synchronized library.
- LRU Map
- Store One
CacheEntry
with multiple files by usingCacheEditor
- Get
CacheSnapshot
and open streams directly fromCacheEntry
- Using a key to remove from cache
- A record file to store all operation info,including 'DIRTY','CLEAN','REMOVE','READ'
- Get total size from cache
- When cache.size > caches.maxSize , auto trim to size.