Hi, I've connected an API that returns 10k+ records. I want to cache the data so they don't need to be loaded every time and I want to paginate them. What's the best way to do that?
Hi Petr,
you can use InMemory DB integration to cache the data. At first, you can try to get them from InMemory DB. If null is returned you load the data and insert them to the store. Next time they will be returned from the cache.
Here is an example of an action flow implementing simple caching:
It could be extended with more logic such as a cache entry expiration.
Thank you, I will try it.
Hello, this looks very promising 🙂