rails-brotli-cache 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-brotli-cache/store.rb +1 -7
- data/lib/rails-brotli-cache/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5512004d2aecf612e5d79e2b1718466af061f9e4365f2589d767a8d28bf523
|
4
|
+
data.tar.gz: 89bffbc70d9cd93e8daf4e65731d4023f82703910b0dc333b3fc07775409ae7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 329a2f361c842187b6c1afc4585dec17638950503908bd9991f83b4243eb8a798903a10a6537650acb6cf229dd1327b79e8bea5467c2abde07f64e926656c08a
|
7
|
+
data.tar.gz: fbb555285118d28986c453b2a7c7935ce35a8d06d88d581888f54bff82426e2f8b705a21e42d7b2d63ce18ee20e277c3a08b2e11ff9d1701c41377501faa5088
|
@@ -42,13 +42,6 @@ module RailsBrotliCache
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def write(name, value, options = nil)
|
45
|
-
if value.is_a?(Integer)
|
46
|
-
return @core_store.write(
|
47
|
-
cache_key(name),
|
48
|
-
value
|
49
|
-
)
|
50
|
-
end
|
51
|
-
|
52
45
|
options = (options || {}).reverse_merge(compress: true)
|
53
46
|
payload = compressed(value, options)
|
54
47
|
|
@@ -126,6 +119,7 @@ module RailsBrotliCache
|
|
126
119
|
private
|
127
120
|
|
128
121
|
def compressed(value, options)
|
122
|
+
return value if value.is_a?(Integer)
|
129
123
|
options ||= {}
|
130
124
|
serialized = Marshal.dump(value)
|
131
125
|
|