8treenet / gcache

gcache是gorm的中间件,插入后gorm即刻拥有缓存。
Apache License 2.0
386 stars 52 forks source link

修复缓存不生效; #19

Closed zsmatrix62 closed 3 years ago

zsmatrix62 commented 3 years ago

es.forgeSearch.havingConditions 查询总是不为 nil, 使用 len == 0 判断;

主键查询缓存不生效,取消 84-85这两句后正常了;

8treenet commented 3 years ago

主键查询缓存不生效,取消 84-85这两句后正常了; 这个改了会有问题的,单测可以试试

zsmatrix62 commented 3 years ago

主键查询缓存不生效,取消 84-85这两句后正常了;

这个改了会有问题的,单测可以试试

单测跑了也是触发不了缓存的。😭

8treenet commented 3 years ago

看下example的主键缓存

八叉树 4932004@qq.com

------------------ 原始邮件 ------------------ 发件人: KyleHwang <notifications@github.com> 发送时间: 2020年12月9日 06:22 收件人: 8treenet/gcache <gcache@noreply.github.com> 抄送: Subscribed <subscribed@noreply.github.com> 主题: 回复:[8treenet/gcache] 修复缓存不生效; (#19)

es.forgeSearch.havingConditions 查询总是不为 nil, 使用 len == 0 判断;

主键查询缓存不生效,取消 84-85这两句后正常了;

You can view, comment on, or merge this pull request online at:

  https://github.com/8treenet/gcache/pull/19

Commit Summary

修复缓存不生效;

File Changes

 M     internal/call_query.go     (2)      

 M     internal/easy_scope.go     (3)    

Patch Links:

https://github.com/8treenet/gcache/pull/19.patch

https://github.com/8treenet/gcache/pull/19.diff

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zsmatrix62 commented 3 years ago

看下example的主键缓存 八叉树 4932004@qq.com

不知道为什么,又没问题了。😳