mondrian_redis_segment_cache 0.0.5-java → 0.0.6-java
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3192d2713db52fda65db761da07ec2727d62845
|
4
|
+
data.tar.gz: 88ec69fef1714e41627643191d4f3f0db19fd69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b85a69e3223cde2ac0fb54c809373f5a5962aab14e475aee898b99dd092ad298f1fba3becdc2b7896b5388a4d4aef93fbbb003cab345b0e0e2e7f6edf86a465
|
7
|
+
data.tar.gz: de91d73884cc2168e7fbd371001648341f6849a702c46485d038c36bf574d34dbc92057e77bb51a3617b8e78b5566b5865c1b5f0c420e9ba0bce2c4aa2ceb3dd
|
@@ -131,7 +131,7 @@ module MondrianRedisSegmentCache
|
|
131
131
|
mondrian_redis.sadd(SEGMENT_HEADERS_SET_KEY, header_base64)
|
132
132
|
|
133
133
|
if options[:ttl]
|
134
|
-
set_success = mondrian_redis.
|
134
|
+
set_success = mondrian_redis.setex(header_base64, options[:ttl], body_base64)
|
135
135
|
else
|
136
136
|
set_success = mondrian_redis.set(header_base64, body_base64)
|
137
137
|
end
|
@@ -195,8 +195,8 @@ module MondrianRedisSegmentCache
|
|
195
195
|
|
196
196
|
segment_headers_base64.each do |segment_header_base64|
|
197
197
|
# Spin through Header Set and remove any keys that are not in redis at all (they may have been deleted while offline)
|
198
|
-
unless mondrian_redis.exists(
|
199
|
-
mondrian_redis.srem(SEGMENT_HEADERS_SET_KEY,
|
198
|
+
unless mondrian_redis.exists(segment_header_base64)
|
199
|
+
mondrian_redis.srem(SEGMENT_HEADERS_SET_KEY, segment_header_base64)
|
200
200
|
end
|
201
201
|
end
|
202
202
|
end
|