An extremely simple LRU Memory Store designed to replace the Rails MemoryStore with an LRU cache eviction strategy. Currently, Rails 2.x only.
Add this line to your application's Gemfile:
gem 'lru_memory_store'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lru_memory_store
Add this line to environment.rb for a 100 slot cache:
config.cache_store :lru_memory_store, 100
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request