2011-05-23 47 views
1

我发现有两种方法来config cache_store为什么rails给我们两种配置rails cache_store的方法?

config.action_controller.cache_store = :mem_cache_store, "localhost" 

here is doc

和:

config.cache_store = :mem_cache_store, "localhost" 

看来,他们是同样的事情。

为什么rails给我们两种方法来配置缓存存储?有什么不同吗?

+1

我的答案适合您吗? – 2011-05-26 05:16:00

回答

相关问题