Academia.eduAcademia.edu

Fig. 4. Structure of the-real-index file  The real-index file (Fig. 4) consists of three parts: a header, entry hash table and an end of the file, called a footer. The header size is 40 bytes and contains information about the number of entries in the hash table, cache size and control  = wey ee  The hash table contains a list of entries and each entry is 24 bytes in size. The cache entry has three parts, as shown in Table 1. The very last 8 bytes of the file are reserved for saving the last modified time of the index file. While Disk Cache structure makes use of block files to store data, Simple Cache resource content and HTTP responses are stored in a single cache entry file. This format significantly simplifies a reading and writing process of cached data which also reduces the complexity of analysis and recovery algorithms. A cache entry name is created by combining a reverse entry hash address from the index file with an underscore and a stream number which can be either 0, 1 or s. The structure of the most commonly used format (stream 0) starts from file header followed by URL, resource content, EOF (End of File), server HTTP response, SHA256 of the URL (optional part) and EOF.

Figure 4 Structure of the-real-index file The real-index file (Fig. 4) consists of three parts: a header, entry hash table and an end of the file, called a footer. The header size is 40 bytes and contains information about the number of entries in the hash table, cache size and control = wey ee The hash table contains a list of entries and each entry is 24 bytes in size. The cache entry has three parts, as shown in Table 1. The very last 8 bytes of the file are reserved for saving the last modified time of the index file. While Disk Cache structure makes use of block files to store data, Simple Cache resource content and HTTP responses are stored in a single cache entry file. This format significantly simplifies a reading and writing process of cached data which also reduces the complexity of analysis and recovery algorithms. A cache entry name is created by combining a reverse entry hash address from the index file with an underscore and a stream number which can be either 0, 1 or s. The structure of the most commonly used format (stream 0) starts from file header followed by URL, resource content, EOF (End of File), server HTTP response, SHA256 of the URL (optional part) and EOF.