How to use `PersistedCache`
I have started using the experimental
1. Is there a way to change how the
2. In addition to changing the value that is persisted, can I change the location and key used? For example, if I wanted to cache the requests at filesytem paths that match the url path of the request (
3. If I wanted to create a system to browse the cached
4. How would you tap into the
PersistedCache backed by a KeyValueStore.layerFileSystem in a web scraper I am building. I have a few questions:1. Is there a way to change how the
TaggedRequest is persisted? For example, if I want to add metadata about the request like the time? Right now I just see [{"_tag":"Success","value": "some-html-string"}] with the TaggedRequest seen below.2. In addition to changing the value that is persisted, can I change the location and key used? For example, if I wanted to cache the requests at filesytem paths that match the url path of the request (
http://example.com/a/b/c -> /requests/a/b/c)?3. If I wanted to create a system to browse the cached
TaggedRequests, how would you deserialize them from the fs?4. How would you tap into the
PersistedCache metrics to monitor cache hits and misses?