Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails MemoryStore with :expires_in option to let fragments expire after a certain amount of time
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

TimedMemoryStore
================
 
A variation on the default Rails Memory Store used for caching page fragments in memory. The TimedMemoryStore gives you the option to add an :expires_in option to your cache block.
 
Usage
=====
- script/plugin install git://github.com/karsthammer/timed_memory_store.git
- Add config.cache_store = :timed_memory_store to your environment.rb
 
And now you can add the expires_in option to your cache block:
 
<% cache :expires_in => 10.minutes do %>
  <h1>Fragment that you want to cache</h1>
<% end %>
 
Copyright (c) 2009 Karst Hammer, released under the MIT license
Something went wrong with that request. Please try again.