README.md in counter-cache-credis-0.0.5 vs README.md in counter-cache-credis-0.0.6
- old
+ new
@@ -5,11 +5,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'counter-cache-redis'
+gem 'counter-cache-credis'
gem 'redis'
```
And then execute:
@@ -58,9 +58,11 @@
```
```ruby
student = Student.first
# It will increase itself by one
student.increase_counter
+# increase selected column
+student.increase_counter(:hello_count)
# It will reduce itself by one
student.reduce_counter
# get views_count through redis
student.get_views_count_cache
```