Class: SecondLevelCache::Config
- Inherits:
-
Object
- Object
- SecondLevelCache::Config
- Defined in:
- lib/second_level_cache/config.rb
Class Attribute Summary collapse
Class Attribute Details
.cache_key_prefix ⇒ Object
19 20 21 |
# File 'lib/second_level_cache/config.rb', line 19 def cache_key_prefix @cache_key_prefix ||= "slc" end |
.cache_store ⇒ Object
8 9 10 11 |
# File 'lib/second_level_cache/config.rb', line 8 def cache_store @cache_store ||= Rails.cache if defined?(Rails) @cache_store end |
.logger ⇒ Object
13 14 15 16 17 |
# File 'lib/second_level_cache/config.rb', line 13 def logger ActiveSupport::Deprecation.warn("logger is deprecated and will be removed from SecondLevelCache 2.7.0") @logger ||= Rails.logger if defined?(Rails) @logger ||= Logger.new(STDOUT) end |