Enhance redis store with Compare-and-Swap methods

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

Installation

Add the following to your Gemfile

gem 'redis-store-with-cas

Usage

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