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

  1. Fork it ( https://github.com/[my-github-username]/counter-cache-redis/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request