- Use synchronized library.
- LRU Map
- Store One
CacheEntrywith multiple files by usingCacheEditor - Get
CacheSnapshotand 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.