README.md in redis-activesupport-with-cas-0.0.2 vs README.md in redis-activesupport-with-cas-0.0.4

- old
+ new

@@ -15,10 +15,19 @@ ```ruby ActiveSupport::Cache.lookup_store :redis_store_with_cas # { ... optional configuration ... } ``` +### Usage with `IdentityCache` + +Inside your environments configuration add following line: + +```ruby +config.cache_store = :redis_store_with_cas, { :host => 'localhost', :port => 6379, :db => 0, :namespace => "data_cache", :expires_in => 15.minutes, :race_condition_ttl => 1} +IdentityCache.cache_backend = ActiveSupport::Cache.lookup_store(*Rails.configuration.cache_store) +``` + ## Running tests ```shell gem install bundler git clone https://git.alwin-it.de/ruby-redis/redis-activesupport-with-cas.git @@ -27,6 +36,6 @@ bundle exec rake ``` ## Copyright -2017 Rajko Albrecht, released under the MIT license \ No newline at end of file +2017 Rajko Albrecht, released under the MIT license