There are some issues with manually managing caching in the database #2770
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
help wanted
planned
This issue/proposal is planned into our next steps.
1. What version of
Go
and system type/arch are you using?$ gf version
GoFrame CLI Tool v2.4.4, https://goframe.org
GoFrame Version: v2.4.4 in current go.mod
CLI Installed At: D:\Golang\bin\gf.exe
Current is a custom installed version, no installation information.
2. What version of
GoFrame
are you using?2.4.4
3. Can this issue be re-produced with the latest release?
yes
4. What did you do?
数据库查询缓存里面手动清除缓存的两个方法查看源码发现实现是一样的,都是清除数据库所有缓存。
另外一个手动删除指定 key 的缓存的方法不生效,在 Cache 中设置的 Name 无法直接使用
包括
g.DB().GetCache()
下的缓存操作方法无法直接操作链式操作中的 Cache,查看源码才知道有个查询前缀:"SelectCache:"5. What did you expect to see?
希望修复,另外希望在文档中有所提示
6. What did you see instead?
The text was updated successfully, but these errors were encountered: