Pacific73 / gorm-cache

gorm v2的即插即用、无需修改代码的旁路缓存。An easy-to-use look-aside cache solution for gorm v2 users.
Apache License 2.0
111 stars 29 forks source link

Add Multi-instance support for redis storage #35

Open Avinash-Kamath opened 2 months ago

Avinash-Kamath commented 2 months ago

Support for using same redis space when running multiple servers.

When running multiple app servers for the same app, all the servers are connected same DB. So it make sense to add use common cache.

Example: If there are 2 items in the list for instance A and 2 items in list for instance B. If one item gets deleted. Cache should be invalidated for both instances.