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
Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to do repeated subgraph calls for the same data.
Describe the solution you'd like
I want to pass in an httpx client (for ex, hishel) and have it handle caching for me.
Describe alternatives you've considered
I've considered implementing my own caching solution instead of doing a subgraph call - but this should actually be handled on a subgrounds package level (in my personal opinion).
The text was updated successfully, but these errors were encountered:
Hey @gabrielfior, you can do subgraph schema level caching via Subgrounds.schema_cache (defaults to "schemas/") and you can enable that via the save_schema parameter, Subgrounds.load_subgraph(URL, save_schema=True).
In terms of caching actual subgraph data, you can create your own custom client where you can implement this behavior. I recommend you take a look at the current Subgrounds and AsyncSubgrounds classes to get an idea of how this wraps the internal structures. Could be an interesting custom client!
Is your feature request related to a problem? Please describe.
I'm always frustrated when I have to do repeated subgraph calls for the same data.
Describe the solution you'd like
I want to pass in an httpx client (for ex, hishel) and have it handle caching for me.
Describe alternatives you've considered
I've considered implementing my own caching solution instead of doing a subgraph call - but this should actually be handled on a subgrounds package level (in my personal opinion).
The text was updated successfully, but these errors were encountered: