Redis Store With CAS enhance the existing redis-store for Ruby Frameworks with so called Compare-And-Swap.
This is required for thread-safe-usage of cache systems like Identity cache.
The tests and workflow are build like in Memcached store for ruby
Add the following to your Gemfile
gem 'redis-store-with-cas
Add a
require 'redis-store-with-cas'
line to your source before first call to Redis::Store.new
. Now each instance of Redis::Store
has
two new methods:
cas
cas_multi
2017 Rajko Albrecht - http://alwins-world.de