We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RedisCacheStore
raw: true
1 parent b97917d commit 2696081Copy full SHA for 2696081
activesupport/lib/active_support/cache.rb
@@ -35,6 +35,7 @@ module Cache
35
:race_condition_ttl,
36
:serializer,
37
:skip_nil,
38
+ :raw,
39
]
40
41
# Mapping of canonical option names to aliases that a store will recognize.
activesupport/test/cache/behaviors/cache_store_behavior.rb
@@ -742,6 +742,12 @@ def test_setting_options_in_fetch_block_does_not_change_cache_options
742
end
743
744
745
+ def test_configuring_store_with_raw
746
+ cache = lookup_store(raw: true)
747
+ cache.write("foo", "bar")
748
+ assert_equal "bar", cache.read("foo")
749
+ end
750
+
751
private
752
def with_raise_on_invalid_cache_expiration_time(new_value, &block)
753
old_value = ActiveSupport::Cache::Store.raise_on_invalid_cache_expiration_time
0 commit comments