You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to understand a bit more about cache_control - what does it mean to be public vs private?
You can use max_age parameters to control the age of the cache (in seconds), and you can also use public and private to control the scope of the cache. When you do not specify it, the scope will default to public. when querying multiple resolvers, the results of all cache control parameters will be combined and the max_age minimum value will be taken. If the scope of any object or field is private, the result will be private.
I saw this in the docs but I still don't understand. Could someone please elaborate a bit more on it? When might I use one vs the other?
Also, can I configure this to use something like Redis or is it only stored in HashSet or something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to understand a bit more about cache_control - what does it mean to be public vs private?
I saw this in the docs but I still don't understand. Could someone please elaborate a bit more on it? When might I use one vs the other?
Also, can I configure this to use something like Redis or is it only stored in
HashSet
or something?Thanks in advanced for your help!
Beta Was this translation helpful? Give feedback.
All reactions