ardanlabs / service

Starter-kit for writing services in Go using Kubernetes.
https://www.ardanlabs.com
Apache License 2.0
3.4k stars 612 forks source link

Caching information #352

Closed mrbardia72 closed 3 months ago

mrbardia72 commented 3 months ago

Do you have a program to cache information?

Like using Redis

https://github.com/ardanlabs/service/blob/master/business/core/crud/user/stores/usercache/usercache.go

ardan-bkennedy commented 3 months ago

You can rewrite this package to use redis or anything you want. The idea here is you don't make any DB/Network call. The cache is in memory for some period of time.