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: b3192d2713db52fda65db761da07ec2727d62845
4
- data.tar.gz: 88ec69fef1714e41627643191d4f3f0db19fd69f
3
+ metadata.gz: c755df929de96f518e93dadbecc397522e4d2687
4
+ data.tar.gz: c7cd26eff9ff6f0c249a976388ca7a23a5675a22
5
5
  SHA512:
6
- metadata.gz: 7b85a69e3223cde2ac0fb54c809373f5a5962aab14e475aee898b99dd092ad298f1fba3becdc2b7896b5388a4d4aef93fbbb003cab345b0e0e2e7f6edf86a465
7
- data.tar.gz: de91d73884cc2168e7fbd371001648341f6849a702c46485d038c36bf574d34dbc92057e77bb51a3617b8e78b5566b5865c1b5f0c420e9ba0bce2c4aa2ceb3dd
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
- segment_headers_base64 = mondrian_redis.smembers(SEGMENT_HEADERS_SET_KEY)
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
- segment_headers_base64.each do |segment_header_base64|
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
- segment_headers_base64 = mondrian_redis.smembers(SEGMENT_HEADERS_SET_KEY)
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
- segment_headers_base64 = mondrian_redis.smembers(SEGMENT_HEADERS_SET_KEY)
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)
@@ -1,3 +1,3 @@
1
1
  module MondrianRedisSegmentCache
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-25 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis