Class: FeatureHub::Sdk::MemcacheSessionStoreOptions
- Inherits:
-
Object
- Object
- FeatureHub::Sdk::MemcacheSessionStoreOptions
- Defined in:
- lib/feature_hub/sdk/memcache_session_store.rb
Overview
Optional configuration for MemcacheSessionStore.
Instance Attribute Summary collapse
-
#backoff_timeout ⇒ Object
readonly
Returns the value of attribute backoff_timeout.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#refresh_timeout ⇒ Object
readonly
Returns the value of attribute refresh_timeout.
-
#retry_update_count ⇒ Object
readonly
Returns the value of attribute retry_update_count.
Instance Method Summary collapse
-
#initialize(opts = nil) ⇒ MemcacheSessionStoreOptions
constructor
A new instance of MemcacheSessionStoreOptions.
Constructor Details
#initialize(opts = nil) ⇒ MemcacheSessionStoreOptions
Returns a new instance of MemcacheSessionStoreOptions.
13 14 15 16 17 18 19 20 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 13 def initialize(opts = nil) opts ||= {} @prefix = opts[:prefix] || "featurehub" @backoff_timeout = opts[:backoff_timeout] || 500 @retry_update_count = opts[:retry_update_count] || 10 @refresh_timeout = opts[:refresh_timeout] || 300 @logger = opts[:logger] end |
Instance Attribute Details
#backoff_timeout ⇒ Object (readonly)
Returns the value of attribute backoff_timeout.
11 12 13 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 11 def backoff_timeout @backoff_timeout end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
11 12 13 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 11 def logger @logger end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
11 12 13 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 11 def prefix @prefix end |
#refresh_timeout ⇒ Object (readonly)
Returns the value of attribute refresh_timeout.
11 12 13 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 11 def refresh_timeout @refresh_timeout end |
#retry_update_count ⇒ Object (readonly)
Returns the value of attribute retry_update_count.
11 12 13 |
# File 'lib/feature_hub/sdk/memcache_session_store.rb', line 11 def retry_update_count @retry_update_count end |