Hi Team, I am working on a requirement where i need to use Couchbase within the Golang webservice for caching services.
We have a MySql Database and Webservices in Golang. I need to do caching of MySQL records and return from Cache for repeated queries. How to do this? Is there any extension for coubase cache in GO SDK?
I am new to cache concept and have very minimal knowledge on it. My idea to implement above requirement is as below:
- Get records from MySql using golang webservices
- Upsert these records in couchbase cache programmatically in golang webservices
- When ever there is a request to get records, Check for record in couchbase cache if doesn’t exist cycle start again 1, 2, 3
Is this approach right? if No, Let me know right approach. Thanks.