Invalidating the InterQueryCache? #109
Replies: 1 comment 2 replies
-
That's an interesting use case :) While the built-in functions have access to the foo := object.get(data, "foo", "") # default to empty string if "foo" is not in data
ret := my_custom_builtin(foo) Your function could then act depending on whether the the |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am hoping to use something like the
InterQueryCache
in some BuiltIn functions, and I'm curious if that cache gets reset/invalidated when new data is pulled from a bundle?I would like to cache an object that is generated from data within an OPA bundle, but I'd like this object to be removed if the data in the bundle is updated (or more generally whenever a new version of a bundle is downloaded).
Thanks!
Alex
Beta Was this translation helpful? Give feedback.
All reactions