Class: Redcache::Configuration
- Inherits:
-
Object
- Object
- Redcache::Configuration
- Defined in:
- lib/redcache/configuration.rb
Instance Attribute Summary collapse
-
#cache_time ⇒ Object
Returns the value of attribute cache_time.
-
#encrypt ⇒ Object
Returns the value of attribute encrypt.
-
#log_prefix ⇒ Object
Returns the value of attribute log_prefix.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#silent ⇒ Object
Returns the value of attribute silent.
-
#skip_cache ⇒ Object
Returns the value of attribute skip_cache.
-
#stale_time ⇒ Object
Returns the value of attribute stale_time.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/redcache/configuration.rb', line 13 def initialize @cache_time = 86400 @stale_time = 900 @encrypt = false @secret = nil @skip_cache = false @silent = false @logger = nil @log_prefix = "redcache" end |
Instance Attribute Details
#cache_time ⇒ Object
Returns the value of attribute cache_time.
5 6 7 |
# File 'lib/redcache/configuration.rb', line 5 def cache_time @cache_time end |
#encrypt ⇒ Object
Returns the value of attribute encrypt.
7 8 9 |
# File 'lib/redcache/configuration.rb', line 7 def encrypt @encrypt end |
#log_prefix ⇒ Object
Returns the value of attribute log_prefix.
11 12 13 |
# File 'lib/redcache/configuration.rb', line 11 def log_prefix @log_prefix end |
#logger ⇒ Object
Returns the value of attribute logger.
10 11 12 |
# File 'lib/redcache/configuration.rb', line 10 def logger @logger end |
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/redcache/configuration.rb', line 3 def redis @redis end |
#secret ⇒ Object
Returns the value of attribute secret.
4 5 6 |
# File 'lib/redcache/configuration.rb', line 4 def secret @secret end |
#silent ⇒ Object
Returns the value of attribute silent.
9 10 11 |
# File 'lib/redcache/configuration.rb', line 9 def silent @silent end |
#skip_cache ⇒ Object
Returns the value of attribute skip_cache.
8 9 10 |
# File 'lib/redcache/configuration.rb', line 8 def skip_cache @skip_cache end |
#stale_time ⇒ Object
Returns the value of attribute stale_time.
6 7 8 |
# File 'lib/redcache/configuration.rb', line 6 def stale_time @stale_time end |