Package com.github.mizosoft.methanol.internal.cache
package com.github.mizosoft.methanol.internal.cache
-
ClassDescriptionAn
Methanol.Interceptorthat serves incoming requests from cache, network, both (in case of successful/failed revalidation), or none (in case of unsatisfiable requests).Publisher for the response body as read from a cached entry'sStore.Viewer.ARawResponseretrieved from cache.Metadata for each response entry in the cache.A strategy for determining whether a stored response is fresh enough for the cache to serve without contacting the origin, based on the caching rules imposed by the server and client.APublisherthat writes the body stream into cache while simultaneously forwarding it to downstream.A persistentStoreimplementation that saves entries on disk under a specified directory.An immutable 80-bit hash code.A function that computes an 80-bit hash from a string key.Read/Write utilities that make sure exactly the requested bytes are read/written.Helpers for parsing/formatting HTTP dates.A response cache that provides APIs for retrieval, metadata updates, insertion and removal.Storeimplementation that stores entries in memory.ARawResponsethat came from the network and may be written to cache.A response with a "raw" body that is yet to be handled.AnMethanol.Interceptorthat follows redirects.A repository of binary data entries each identified by a string key.Writes an entry's metadata block and data stream.A reader for an entry's data stream.A writer for an entry's data stream.Reads an entry's metadata block and data stream.