Sinatra rack-cache 在 sinatra 工作的问题

metal · September 20, 2012 · 2236 hits
use Rack::Cache, verbose     => true,
  :metastore   => 'file:./public/cache/rack/meta',
  :entitystore => 'file:./public/cache/rack/body'

缓存成静态文件了。要是主动手动清理的话好像 rack-cache 就没有提供方法。加缓存容易,清理难啊。

sinatra 里做缓存主要手段是什么?我想了解一下。

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