Module: EntityCache::Store::Internal::Build::Defaults::Scope
- Defined in:
- lib/entity_cache/store/internal/build/defaults.rb
Class Method Summary collapse
Class Method Details
.default ⇒ Object
20 21 22 |
# File 'lib/entity_cache/store/internal/build/defaults.rb', line 20 def self.default 'thread' end |
.env_var ⇒ Object
16 17 18 |
# File 'lib/entity_cache/store/internal/build/defaults.rb', line 16 def self.env_var 'ENTITY_CACHE_SCOPE' end |
.get ⇒ Object
11 12 13 14 |
# File 'lib/entity_cache/store/internal/build/defaults.rb', line 11 def self.get value = ENV.fetch(env_var, default) value.to_sym end |