alephant-broker 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/broker/cache.rb +3 -3
- data/lib/alephant/broker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2c0620ec5045c515d26dd4e5e58692f4948b83
|
4
|
+
data.tar.gz: 2e8fc20b454f4af591a9a4d2d7728e98ec7cb536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589db2ac38924edb98b69e5cb45add8a0d7fcedd9f8f3616aa3b5ee156c1d34b05c864a73d85147db5a20bc502616cf5fe30588901070e0e5751106385e80ebd
|
7
|
+
data.tar.gz: 60b10de3ccfb8c1ebf27e2d3d1042adce08c1d37a20c5782bfa4c86564ea8c8311a797f0f6bc0b3a5d52de800c65215a2491b0117456eb65e8e3a070c2e5e8f0
|
@@ -22,9 +22,9 @@ module Alephant
|
|
22
22
|
|
23
23
|
def get(key, &block)
|
24
24
|
begin
|
25
|
-
|
26
|
-
result = @@client.get
|
27
|
-
logger.info("Broker::Cache::Client#get key: #{
|
25
|
+
versioned_key = versioned key
|
26
|
+
result = @@client.get versioned_key
|
27
|
+
logger.info("Broker::Cache::Client#get key: #{versioned_key} - #{result ? 'hit' : 'miss'}")
|
28
28
|
logger.metric(:name => "BrokerCacheClientGetKeyMiss", :unit => "Count", :value => 1) unless result
|
29
29
|
result ? result : set(key, block.call)
|
30
30
|
rescue StandardError => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|