Adam
Adam
CDCloudflare Developers
Created by Adam on 2/29/2024 in #workers-help
Caching in-memory
Is there any way to cache data "in memory" rather than over the network as JSON etc.? The use case is we have a very large blob of JSON that we need to manipulate in a worker which is called at a very high rate. The JSON is cached via the existing "fetch" caching mechanism so that the delivery of the raw file itself is fast, but the problem is that every invocation of the worker needs to re-parse that JSON in order to use it. Is there any way to cache the actual parsed JSON object in-memory somewhere so that multiple invocations can use the already-parsed version of it without having to redo that parsing work?
5 replies