rails-brotli-cache 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2d42ab4cc77a7965e7d04b70b07a672b657d9b4b54be4814f8716595254d8e
|
4
|
+
data.tar.gz: f81c51e38be663e108538b138fecc80ed726fa701f00e98b658ec028a49528ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd18abde6498cd2fd982deb14eac6150c6cddbad7ec418a24fe5bf8dca78458354b5b5419f572311652369ff0f1c20e9d398c7b340195e48028ef6f3ce39a517
|
7
|
+
data.tar.gz: a5b278df40d8afd4f48e0bf3f1e2c0487b2b3e66e75ecb2c6c937aac483426ea3309081cce6af946e94a88dd984160b5b91ee318129d8b1c92b3a3e41a33d29f
|
@@ -62,38 +62,38 @@ describe RailsBrotliCache do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
it "for #write_multi and #read_multi" do
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
65
|
+
values = {
|
66
|
+
"key_1" => "val_1",
|
67
|
+
"key_2" => "val_2"
|
68
|
+
}
|
69
69
|
|
70
|
-
|
71
|
-
|
70
|
+
brotli_store.write_multi(values)
|
71
|
+
standard_cache.write_multi(values)
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
expect(brotli_store.read("key_1")).to eq standard_cache.read("key_1")
|
74
|
+
expect(brotli_store.read("key_2")).to eq standard_cache.read("key_2")
|
75
75
|
|
76
|
-
|
76
|
+
expect(brotli_store.read_multi("key_1", "key_2")).to eq(standard_cache.read_multi("key_1", "key_2"))
|
77
77
|
end
|
78
78
|
|
79
79
|
it "for #fetch_multi" do
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
values = {
|
81
|
+
"key_1" => "val_1",
|
82
|
+
"key_2" => "val_2"
|
83
|
+
}
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
brotli_store.fetch_multi("key_1", "key_2") do |key|
|
86
|
+
"val_#{key.split('_').last}"
|
87
|
+
end
|
88
88
|
|
89
|
-
|
90
|
-
|
91
|
-
|
89
|
+
standard_cache.fetch_multi("key_1", "key_2") do |key|
|
90
|
+
"val_#{key.split('_').last}"
|
91
|
+
end
|
92
92
|
|
93
|
-
|
94
|
-
|
93
|
+
expect(brotli_store.read("key_1")).to eq standard_cache.read("key_1")
|
94
|
+
expect(brotli_store.read("key_2")).to eq standard_cache.read("key_2")
|
95
95
|
|
96
|
-
|
96
|
+
expect(brotli_store.read_multi("key_1", "key_2")).to eq(standard_cache.read_multi("key_1", "key_2"))
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|