Disk Cache
The disk cache stores resources fetched from the web so that they can be accessed quickly at a latter time if needed. The main characteristics of Chromium disk cache are: A new version of the cache is under development, and some sections of this documents are going to be stale soon. In particular, the description of a cache entry, and the big picture diagram (sections 3.4 and 3.5) are only valid for files saved with version 2.x Note that on Android we don't use this implementation; we use the simple cache instead. Any implementation of Chromium's cache exposes two interfaces: disk_cache::Backend and disk_cache::Entry. (see src/net/disk_cache/disk_cache.h). The Backend provides methods to enumerate the resources stored on the cache (a.k.a Entries), open old entries or create new ones etc. Operations specific to a given resource are handled with the Entry interface. An entry is identified by its key, which is just the name of the resource (for example http://www.google.com/favicon.ico ).
Disk Cache For Developers > Design Documents > Network Stack > Disk Cache Overview The disk cache stores resources fetched from the web so that they can be accessed quickly at a latter time if needed. The main characteristics of Chromium disk cache are: The cache should not grow unbounded so there must be an algorithm for deciding when to remove old entries. While it is not critical to lose some data from the cache, having to discard the whole cache should be minimized. The current design should be able to gracefully handle application crashes, no matter what is going on at that time, only dis
Explore this link on the map →related reading
- Dropboxdropbox.com
- Buffer cache | CS 162 Project 3cs162.org
- Build Your Own Databasenan.fyi
- Analyzing the codebase of Caffeine: a high performance caching library | Adri’s Blogadriacabeza.github.io
- LRU Cache: How It Works (Data Structure & Code) | Interview Cakeinterviewcake.com
- Century-Scale Storagelil.law.harvard.edu
- abseil / Performance Hintsabseil.io
- Disks and Files - Database Systemscs186berkeley.net
- HTTP caching - HTTP | MDNdeveloper.mozilla.org
- Cache and Prizes - Infrequently Notedinfrequently.org
- Cache Memory in Computer Organization - GeeksforGeeksgeeksforgeeks.org
- Code caching for JavaScript developers · V8v8.dev