hiera-router 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiera/backend/router_backend.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 195952fdfc13469cd0e964f0f08cd4331011ed3f
|
4
|
+
data.tar.gz: 611d3d57d2a4df80f2bbf681236560fbf9e8d74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680057f568fb7d2a918f828fb0ab519393d7f18750289aa163b2d1a30de706475887bb6bc3f606c4077e8789468496134d59f2c30f8d3799e711c6114626962f
|
7
|
+
data.tar.gz: 2d1c1904bfca4c5cb69666fafeb7371a34890e7c4544d4f35f6e793ec1e9b8fb6c4ebc63bf3d9fa189fe7a1178586c0dd1f4a18d4ac9c6cc3b1ea3094cf8f23a
|
@@ -23,7 +23,7 @@ class Hiera
|
|
23
23
|
@cache = cache || Filecache.new
|
24
24
|
@bigcache = {}
|
25
25
|
@backends = {}
|
26
|
-
@
|
26
|
+
@cache_time = 60 # Cache all values for 1 minute
|
27
27
|
Hiera.debug("[hiera-router] I'm here!")
|
28
28
|
self.config = Config.config
|
29
29
|
|
@@ -72,7 +72,7 @@ class Hiera
|
|
72
72
|
cache_key = options.to_s
|
73
73
|
cached_value = @bigcache[cache_key]
|
74
74
|
if cached_value
|
75
|
-
return cached_value[:value] if cached_value[:time] > Time.now - @
|
75
|
+
return cached_value[:value] if cached_value[:time] > Time.now - @cache_time
|
76
76
|
end
|
77
77
|
answer = nil
|
78
78
|
|