API Caching

Learn how caching reduces the response time of the app.

We'll cover the following...

Add cache store

There is currently an implementation to cache with the gem jsonapi-serializer, which is easy to handle. Older versions of this gem work slightly differently, but can still be used for caching.

Let’s request the product list using the curl command to check the current response time of the app.

ruby-2.6.3
Test the code using Rails test

Click on the “Run” button to open a terminal. Then, open a new terminal by clicking the “ ...