What are the best solutions for key value caching in WordPress?

I am using an API, but we’re using it too much, so I am looking for a caching method so we don’t have to request the API over and over again when we tend to return the same value 50% of the time.


I looked at the transients API and it’s good except it’s not, because it uses the database, and making too many database calls can slow down the website. I am making a call for every GET request, so making a db call to every GET request will not be good for performance, so I need a true caching library or API to use that’s easy to install and configure unless there’s one that’s natively supported.