提交 37c19f7e 编写于 作者: R Ryuta Kamizono

Fix Active Support failure for redis 4.2.0 with Ruby 2.8.0-dev

上级 2c5c452d
......@@ -386,7 +386,7 @@ GEM
ffi (~> 1.0)
rdoc (6.2.1)
redcarpet (3.2.3)
redis (4.1.3)
redis (4.2.0)
redis-namespace (1.7.0)
redis (>= 3.0.4)
regexp_parser (1.6.0)
......
......@@ -398,7 +398,7 @@ def write_entry(key, entry, unless_exist: false, raw: false, expires_in: nil, ra
modifiers[:nx] = unless_exist
modifiers[:px] = (1000 * expires_in.to_f).ceil if expires_in
redis.with { |c| c.set key, serialized_entry, modifiers }
redis.with { |c| c.set key, serialized_entry, **modifiers }
else
redis.with { |c| c.set key, serialized_entry }
end
......
......@@ -290,7 +290,7 @@ class ClearTest < StoreTest
@cache.redis.set("fu", "baz")
@cache.clear
assert_not @cache.exist?("foo")
assert @cache.redis.exists("fu")
assert @cache.redis.exists?("fu")
end
test "clear all cache key with Redis::Distributed" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册