本文介绍了怎么叫沉默!在 dalli cache_store 上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在开发模式下使用缓存来开发应用程序,但是 development.log 垃圾邮件严重受到缓存日志的影响.我正在使用 dalli,我知道,dalli 有静音!方法(https://github.com/mperham/dalli/commit/892020fbc73613ccc84412ce04b85b7fda645e63),但是这个方法怎么用?
I'm trying to develop application with caching in development mode, but development.log spammed is heavily by cache logs. I'm use dalli, and I know, that dalli has silence! method (https://github.com/mperham/dalli/commit/892020fbc73613ccc84412ce04b85b7fda645e63), but how to use this method?
我找到了一些旧指令,建议在config.cache_store
上调用,但它是一个符号,没有这个方法:
I found some old instructions, where it is suggested to call in on config.cache_store
, but it is a symbol, and don't has this method:
config.cache_store = :dalli_store
config.cache_store.silence!
抛出异常.
推荐答案
尝试在 Rails.cache
这篇关于怎么叫沉默!在 dalli cache_store 上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!