|typedef class StoreMeta||tlv|
|char *||storeSwapMetaPack (tlv *tlv_list, int *length)|
|tlv *||storeSwapMetaBuild (StoreEntry *e)|
|void||storeSwapTLVFree (tlv *n)|
Enumeration Type Documentation
- AYJ: for critical lists like this we should use A=64,B=65 etc to enforce and reserve values.
- NOTE! We must preserve the order of this list!
- "swap meta" refers to a section of meta data stored at the beginning of an object that is stored on disk. This meta data includes information such as the object's cache key (MD5), URL, and part of the StoreEntry structure.
- The meta data is stored using a TYPE-LENGTH-VALUE format. That is, each chunk of meta information consists of a TYPE identifier, a LENGTH field, and then the VALUE (which is LENGTH octets long).
Just a placeholder for the zeroth value. It is never used on disk.
This represents the MD5 cache key that Squid currently uses. When Squid opens a disk file for reading, it can check that this MD5 matches the MD5 of the user's request. If not, then something went wrong and this is probably the wrong object.
The object's URL. This also may be matched against a user's request for cache hits to make sure we got the right object.
This is the "standard metadata" for an object. Really its just this middle chunk of the StoreEntry structure:
Reserved for future hit-metering (RFC 2227) stuff
Stores Vary request headers
Updated version of STORE_META_STD, with support for >2GB objects. As STORE_META_STD except that the swap_file_sz is a 64-bit integer instead of 32-bit.