Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created November 20, 2008 22:49
Show Gist options
  • Select an option

  • Save jackdempsey/27249 to your computer and use it in GitHub Desktop.

Select an option

Save jackdempsey/27249 to your computer and use it in GitHub Desktop.
Merb::BootLoader.before_app_loads do
# page cache to the public dir
Merb::Cache.register(:page_store, Merb::Cache::PageStore[Merb::Cache::FileStore], :dir => Merb.root / :public)
# action cache to memcache
Merb::Cache.register(:action_store, Merb::Cache::ActionStore[Merb::Cache::FileStore])
# sets up the ordering of stores when attempting to read/write cache entries
Merb::Cache.register(:default, Merb::Cache::AdhocStore[:page_store, :action_store])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment