alephant-lookup 2.0.0 → 2.0.1

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: 6f7e07c301d41b1ad0433b62cbd83e89d4e1a911
4
- data.tar.gz: 785873a081b3d684b092f4aa74d408f22dab9141
3
+ metadata.gz: 9b2ced2eb0c4adf58ae48151dfe5a7a49930ac17
4
+ data.tar.gz: 3541872b33fe27ac33f012b2f9b8e7986a49fdb8
5
5
  SHA512:
6
- metadata.gz: 540b154e9875cb1c1977ac87f68c00dbb0b394f2e36f8d3e73703f3f29605e0a1b63ba9f9fbe275804c2e9a094038303d0eea936d0aa8fc3a096c9d39e952010
7
- data.tar.gz: 992e6df834993e052f6f82ac1cc279a8e774569e4ee6a59c58b6e06fd46c49132c31b3d83bc3fae9e6563e0a01d493d180d6ab378a2a0475448db4238d9da780
6
+ metadata.gz: 80164e635e6676eddf4fba5db2fcf3107647facd1c7c81b2e89ae56943a01c3eacd0d9bdd9cff4a84b9d133b8c56ef036514fec425e98c6d904fd0b3e157e952
7
+ data.tar.gz: 2ba31a2257781ceb806496a1c2f3d795dbb7c109e354303a1a51ea5473b62f48638a557db0294f4cb5d732730facdccac242a020aeca229cd836c7596eb17220
@@ -1,5 +1,5 @@
1
- require 'dalli-elasticache'
2
- require 'alephant/logger'
1
+ require "dalli-elasticache"
2
+ require "alephant/logger"
3
3
 
4
4
  module Alephant
5
5
  module Lookup
@@ -8,7 +8,7 @@ module Alephant
8
8
 
9
9
  attr_reader :config
10
10
 
11
- DEFAULT_TTL = 5
11
+ DEFAULT_TTL = 2
12
12
 
13
13
  def initialize(config={})
14
14
  @config = config
@@ -46,15 +46,15 @@ module Alephant
46
46
  end
47
47
 
48
48
  def ttl
49
- config['elasticache_ttl'] || DEFAULT_TTL
49
+ config["lookup_elasticache_ttl"] || DEFAULT_TTL
50
50
  end
51
51
 
52
52
  def versioned(key)
53
- [key, cache_version].compact.join('_')
53
+ [key, cache_version].compact.join("_")
54
54
  end
55
55
 
56
56
  def cache_version
57
- config['elasticache_cache_version']
57
+ config["elasticache_cache_version"]
58
58
  end
59
59
  end
60
60
 
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Lookup
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement