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
Hi, I have an application where I buffer (cache) data into in-memory cache periodically. The cache structure is nested object which is optimized to read data efficiently. I have BufferManager class to manage writing and reading of cache and BufferClient to handle data fetching logic.
The app is similar to hls video player, but instead of buffering video frames, I buffer json objects in order to draw them on canvas.
Can I use my custom BufferManager as QueryCache so that I can use react-query to handle data fetching?
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an application where I buffer (cache) data into in-memory cache periodically. The cache structure is nested object which is optimized to read data efficiently. I have BufferManager class to manage writing and reading of cache and BufferClient to handle data fetching logic.
The app is similar to hls video player, but instead of buffering video frames, I buffer json objects in order to draw them on canvas.
Can I use my custom BufferManager as QueryCache so that I can use react-query to handle data fetching?
My buffer (cache) structure looks like this:
If you need more context, just let me know
Beta Was this translation helpful? Give feedback.
All reactions