1
我发现有两种方法来config cache_store
:为什么rails给我们两种配置rails cache_store的方法?
config.action_controller.cache_store = :mem_cache_store, "localhost"
和:
config.cache_store = :mem_cache_store, "localhost"
看来,他们是同样的事情。
为什么rails给我们两种方法来配置缓存存储?有什么不同吗?
我的答案适合您吗? – 2011-05-26 05:16:00