Caching API requests

Posted 2 years ago by collinsjd

The API I need to call is single entity by ID or every record. My app needs to do a typeahead dropdown by name (not ID), but due to the length of time it takes to make the full API call, I need to cache the remote data.

What's the best way to go about doing this? Do I make a scheduled task that pulls everything into a local copy? Is there existing code/plugin to compare the incoming and CRUD the cache as appropriate? Thanks!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.