Readthis
An ActiveSupport::Cache compatible redis based cache focused on speed, simplicity, and forced pooling.
The only dependencies are redis and connection_pool.
Installation
Add this line to your application's Gemfile:
gem 'readthis'
Usage
Use it the same way as any other ActiveSupport::Cache::Store. Readthis supports all of the standard cache methods except for the following (with reasons):
cleanup- redis does this with ttl for us alreadydelete_matched- you really don't want to do perform key matching operations in redis. They are linear time and only support basic globbing.
Contributing
- Fork it ( https://github.com/[my-github-username]/readthis/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request