Gorm: When will gorm implement local cache and redis cache? It is a very important feature. Thanks.

Created on 5 Sep 2018  路  5Comments  路  Source: go-gorm/gorm

When will gorm implement local cache and redis cache? It is a very important feature. Thanks.

Most helpful comment

@inliquid Why is it a bad decision using cache in GORM, would you like to give some reason? Are there any other ways to improve performance? Thanks.

All 5 comments

This is a feature that would really help me as well. How would one go about doing it though?
Do we maintain a copy of the data in the redis/local cache at all times, while interacting with it via our own sql layer?

Am looking to contribute to gorm, not sure where to start though.

me too..

Do not mess cache and database layers. It would be really bad decision. There are a lot of other important and high priority issues. Leave GORM without it, please.

@inliquid Why is it a bad decision using cache in GORM, would you like to give some reason? Are there any other ways to improve performance? Thanks.

there are some plugins that can do the job, GORM won't support it by itself. for example: https://github.com/8treenet/gcache

Was this page helpful?
0 / 5 - 0 ratings