diff --git a/lib/cache_store_redis/redis_cache_store.rb b/lib/cache_store_redis/redis_cache_store.rb index 7e3f130..50fa714 100644 --- a/lib/cache_store_redis/redis_cache_store.rb +++ b/lib/cache_store_redis/redis_cache_store.rb @@ -75,10 +75,10 @@ def set(key, value, expires_in = DEFAULT_TTL) expire_value = expiry_int.positive? ? expiry_int : Integer(DEFAULT_TTL) with_client do |client| - client.multi do - client.set(k, v) + client.multi do |transaction| + transaction.set(k, v) - client.expire(k, expire_value) + transaction.expire(k, expire_value) end end end diff --git a/lib/cache_store_redis/version.rb b/lib/cache_store_redis/version.rb index 26a41b5..f03a918 100644 --- a/lib/cache_store_redis/version.rb +++ b/lib/cache_store_redis/version.rb @@ -1,3 +1,3 @@ module CacheStoreRedis - VERSION = '2.4.1' + VERSION = '2.4.2' end