Skip to content

Commit

Permalink
Update the multi code to remove the warnings in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraCollins-Sage committed Oct 17, 2024
1 parent 3940ebe commit 61a3051
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/cache_store_redis/redis_cache_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/cache_store_redis/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module CacheStoreRedis
VERSION = '2.4.1'
VERSION = '2.4.2'
end

0 comments on commit 61a3051

Please sign in to comment.