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

Update after_query.go #25

Closed ghost closed 1 year ago

ghost commented 1 year ago

When using tables option inside config struct the after_query caching the queries, but that's not used in before_query

asjdf commented 1 year ago

Great PR!

I thought you can try to use replace instead of change the package name directly. I thought it's more convenient for you to develop this pkg.

Pacific73 commented 1 year ago

PR will not be merged in, for you used package reference from other repos. I've updated the code on master branch. Thanks for issue this PR. Table name issue has been fixed.