gpt4 book ai didi

ruby-on-rails - 怎么叫沉默!在 dalli cache_store 上?

转载 作者:数据小太阳 更新时间:2023-10-29 07:23:12 24 4
gpt4 key购买 nike

我正在尝试在开发模式下开发带有缓存的应用程序,但垃圾邮件中的 development.log 主要由缓存日志组成。我用的是 dalli,我知道,dalli 有静音!方法(https://github.com/mperham/dalli/commit/892020fbc73613ccc84412ce04b85b7fda645e63),但是如何使用这个方法呢?

我找到了一些旧的说明,建议在config.cache_store上调用,但它是一个符号,没有这个方法:

config.cache_store = :dalli_store
config.cache_store.silence!

抛出异常。

最佳答案

尝试在 Rails.cache 上调用 #silence!

关于ruby-on-rails - 怎么叫沉默!在 dalli cache_store 上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13043968/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com