mondrian_redis_segment_cache 0.0.6-java → 0.0.7-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: c755df929de96f518e93dadbecc397522e4d2687
|
4
|
+
data.tar.gz: c7cd26eff9ff6f0c249a976388ca7a23a5675a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d540eec5a7f2f3377e7ddb2979ae0629eb4446ca83565fe4b801adfc9487223ea591256fae5344cf89848556842d667079687aefccb1d463401612f912a69735
|
7
|
+
data.tar.gz: 15d18b921993f028252f6a9db33d25e16e1133ea0cd9a3019c0bb4af70dc56699eecd5541c8a7e423d590191b2a90c952b192c64c4f205eb8b529fee6c1a9a36
|
@@ -54,8 +54,7 @@ module MondrianRedisSegmentCache
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def eager_load_listener(listener)
|
57
|
-
|
58
|
-
segment_headers_base64.each do |segment_header_base64|
|
57
|
+
mondrian_redis.sscan_each(SEGMENT_HEADERS_SET_KEY) do |segment_header_base64|
|
59
58
|
publish_created_to_listener(segment_header_base64, listener)
|
60
59
|
end
|
61
60
|
end
|
@@ -76,9 +75,9 @@ module MondrianRedisSegmentCache
|
|
76
75
|
|
77
76
|
# returns ArrayList<SegmentHeader>
|
78
77
|
def getSegmentHeaders()
|
79
|
-
segment_headers_base64 = mondrian_redis.smembers(SEGMENT_HEADERS_SET_KEY)
|
80
78
|
segment_headers = ::Java::JavaUtil::ArrayList.new
|
81
|
-
|
79
|
+
|
80
|
+
mondrian_redis.sscan_each(SEGMENT_HEADERS_SET_KEY) do |segment_header_base64|
|
82
81
|
segment_header = segment_header_from_base64(segment_header_base64)
|
83
82
|
|
84
83
|
if segment_header
|
@@ -163,8 +162,7 @@ module MondrianRedisSegmentCache
|
|
163
162
|
def tearDown()
|
164
163
|
if options[:delete_all_on_tear_down]
|
165
164
|
# Remove all of the headers and the set that controls them
|
166
|
-
|
167
|
-
segment_headers_base64.each do |segment_header_base64|
|
165
|
+
mondrian_redis.sscan_each(SEGMENT_HEADERS_SET_KEY) do |segment_header_base64|
|
168
166
|
mondrian_redis.del(segment_header_base64)
|
169
167
|
end
|
170
168
|
|
@@ -191,9 +189,7 @@ module MondrianRedisSegmentCache
|
|
191
189
|
end
|
192
190
|
|
193
191
|
def reconcile_set_and_keys
|
194
|
-
|
195
|
-
|
196
|
-
segment_headers_base64.each do |segment_header_base64|
|
192
|
+
mondrian_redis.sscan_each(SEGMENT_HEADERS_SET_KEY) do |segment_header_base64|
|
197
193
|
# Spin through Header Set and remove any keys that are not in redis at all (they may have been deleted while offline)
|
198
194
|
unless mondrian_redis.exists(segment_header_base64)
|
199
195
|
mondrian_redis.srem(SEGMENT_HEADERS_SET_KEY, segment_header_base64)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondrian_redis_segment_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Brandon Dewitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|