Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phoet/rails_redis_cache
rails cache store implementation with redis
https://github.com/phoet/rails_redis_cache
Last synced: 26 days ago
JSON representation
rails cache store implementation with redis
- Host: GitHub
- URL: https://github.com/phoet/rails_redis_cache
- Owner: phoet
- License: other
- Created: 2010-08-10T10:11:14.000Z (about 14 years ago)
- Default Branch: develop
- Last Pushed: 2011-12-15T09:09:16.000Z (almost 13 years ago)
- Last Synced: 2024-09-14T02:53:36.061Z (about 2 months ago)
- Language: Ruby
- Homepage: http://blog.nofail.de/2010/08/using-the-redis-addon-on-heroku/
- Size: 632 KB
- Stars: 12
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
== About
Status: http://stillmaintained.com/phoet/rails_redis_cache.png
Build: http://travis-ci.org/phoet/rails_redis_cache.pngCache store implementation for Rails 3.1 using the key value store Redis[http://code.google.com/p/redis].
If you are looking for Rails 3 implementation please have a look at latest stable release version 0.0.4.
== Usage
In the environment.rb or environments-files write:
ActionController::Base.cache_store = ActiveSupport::Cache::RailsRedisCacheStore.new(:url => ENV['RAILS_REDIS_CACHE_URL'])
... or ...
config.cache_store = ActiveSupport::Cache::RailsRedisCacheStore.new(:url => ENV['RAILS_REDIS_CACHE_URL'])Using the cache is simple:
@tweets = cache("tweets", :expires_in => 30.seconds){ Twitter::Search.new(...) }
== Installing Redis with homebrew
Using a local Redis server for testing is simple:
brew install redis
redis-server== Changelog
See CHANGELOG file for further information.
== License
See LICENSE file for further information.