cache_service 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cache_service.gemspec +1 -1
- data/lib/services/cache_service.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: 2ab4bab409cfebd5f3396706003f8278fe347de6
|
4
|
+
data.tar.gz: 636144bf42285de2b2bd4955d8d96a7044e806ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6837148179316f2f2899cad51066aa1acb400811738facf59833ac535b1838d2b6a4ea0c1fbd4ce114ebe7c8aa97c4b1473bcd2edfb7ad6269fb96f91abe3b
|
7
|
+
data.tar.gz: 33704ee78e2ae7459f03ac9ebdd484fa16457bcb75e9d0fbb2ee137dc608680fe23b2736b6c4dc8076be3f9f5f948455aa4797ca18afb3364c3070ab3fc2c8ff
|
data/cache_service.gemspec
CHANGED
@@ -14,8 +14,8 @@ class CacheService
|
|
14
14
|
config = ConfigService.load_config('cache_config.yml')[ConfigService.environment]
|
15
15
|
# Load all the existing caches in the system, outside of the gem
|
16
16
|
Dir.glob("#{File.expand_path('.')}/caches/*.rb").each { |rb_file| require rb_file }
|
17
|
-
@@cache ||=
|
18
|
-
SdkLogger.logger =
|
17
|
+
@@cache ||= eval(config['cache'])
|
18
|
+
SdkLogger.logger = eval(config['logger']) if config['logger'].present?
|
19
19
|
rescue => error
|
20
20
|
@@cache ||= McCache
|
21
21
|
end
|