Access Redis cache API in Frappe

We are implementing an API integration between Frappe/ERPNext and our own microservices. In order to cache the access token, we would like to use the internal integrated Redis. But there is no relevant document on ERPNext/Frappe website about this kind of usage.
Besides, we found frappe.cache().hget/hset from the source code. Is there any document to demonstrate and usage for these functions?

Thanks in advance.

Hello @xoojulian,

Did you find a resolution about your request?

Regards.

I have the same question about usage of frappe.cache().hget ? Any helps

Checkout this article on Frappe Redis Caching. Frappe: Improve your REST APIs - Sansub

2 Likes