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: 4f9d1865c577a8c64f5d69abb17c1e20f85f26a6
4
- data.tar.gz: fd0c08ed86a8d88a0843523fba32cb7f316e1ff2
3
+ metadata.gz: b3192d2713db52fda65db761da07ec2727d62845
4
+ data.tar.gz: 88ec69fef1714e41627643191d4f3f0db19fd69f
5
5
  SHA512:
6
- metadata.gz: b9412cfff753f5ff105ad6e89a2e0232c9253fa5a20bd182f031f88acaa30424b5b1a23d653134436cb2449a65f87d98e654d2041962fb9dcd28578c244f4c14
7
- data.tar.gz: b1ab22bd6e88bb7b440fbe4acd5323607ab6ca5afcef2c5686560f62f1f498a21059253b4abc8b8e113a87de47debfffd33215dd05011839051e225099771596
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.set(header_base64, body_base64, :ex => options[:ttl])
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(header_base64)
199
- mondrian_redis.srem(SEGMENT_HEADERS_SET_KEY, message)
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
@@ -1,3 +1,3 @@
1
1
  module MondrianRedisSegmentCache
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mondrian_redis_segment_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: java
6
6
  authors:
7
7
  - Brandon Dewitt