Counter::Cache::Redis
未完成。
实现效果:
能根据不同表来设置不同字段,读取也在 redis,而不用再通过 DB
Installation
Add this line to your application's Gemfile:
gem 'counter-cache-redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install counter-cache-redis
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/[my-github-username]/counter-cache-redis/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