-
-
Notifications
You must be signed in to change notification settings - Fork 9
Add support for caching #72
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
We need to noodle on this one. What it would look like to add caching to HappyView?
Use cases
Cache an XRPC
I have a complex XRPC script. Instead of running it every time it's called, I'd prefer it regenerate every 5 minutes, and always respond with the most recent cached result.
Regenerate cache onn-demand
I want to be able to trigger a cache update from a script. Since I know this type of record will impact the results of the cache, I want to call a method that will force the cache to regenerate.
Open questions
Solution
happyview.updateCache(CACHE_NAME)(maybe NSID instead of CACHE_NAME?)