Changes between Version 1 and Version 2 of MemoryCache
- Timestamp:
- Aug 26, 2013 6:27:45 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MemoryCache
v1 v2 51 51 MemoryCache keeps references to resources in three different structures: 52 52 53 * m_resources - a URL-based map of all resources kept in cache53 * m_resources - a LRU-based map of all resources kept in cache 54 54 * m_allResources - Vector of LRU lists with fixed size (32). Basing on CachedResource access counter a resource is located in appropriate list. Prune procedure will start evict beginning from last recently used resources. 55 55 * m_liveDecodedResources - live resources with decoded data. If stored resources significantly exceeds total capacity MemoryCache tries to remove decoded data one by one until boundary assumptions will be fulfilled or there would be nothing redundant data to release.