README.md in counter-cache-credis-0.0.2 vs README.md in counter-cache-credis-0.0.3
- old
+ new
@@ -1,6 +1,6 @@
-# Counter::Cache::Redis
+# Counter::Cache::CRedis
Set a counter for model through redis in order to improve perfomance.
## Installation
@@ -49,9 +49,14 @@
```
### Use
+```ruby
+class Student < ActiveRecord::Base
+ counter_cache_redis
+end
+```
```ruby
student = Student.first
# It will increase itself by one
student.update_counter
# get views_count through redis