Rails 问一个关于 Rails.cache.write 的问题

leoruby · January 05, 2013 · 2124 hits

问一个关于 Rails.cache.write 的问题 如果我只是写 Rails.cache.write(key,value)而不传入 :expires_in 的话,那么是否意味着 cache 永不过期,还是说会加载一个 default 的过期值?

还有我怎样才能在页面上显示当前加载的 cache 版本和时间呢?

求大神解答。。。

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.