Class: FeatureHub::Sdk::RedisSessionStoreOptions
- Inherits:
-
Object
- Object
- FeatureHub::Sdk::RedisSessionStoreOptions
- Defined in:
- lib/feature_hub/sdk/redis_session_store.rb
Overview
Optional configuration for RedisSessionStore.
Instance Attribute Summary collapse
-
#backoff_timeout ⇒ Object
readonly
Returns the value of attribute backoff_timeout.
-
#db ⇒ Object
readonly
Returns the value of attribute db.
-
#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) ⇒ RedisSessionStoreOptions
constructor
A new instance of RedisSessionStoreOptions.
Constructor Details
#initialize(opts = nil) ⇒ RedisSessionStoreOptions
Returns a new instance of RedisSessionStoreOptions.
13 14 15 16 17 18 19 20 21 |
# File 'lib/feature_hub/sdk/redis_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] @db = opts[:db] || 0 end |
Instance Attribute Details
#backoff_timeout ⇒ Object (readonly)
Returns the value of attribute backoff_timeout.
11 12 13 |
# File 'lib/feature_hub/sdk/redis_session_store.rb', line 11 def backoff_timeout @backoff_timeout end |
#db ⇒ Object (readonly)
Returns the value of attribute db.
11 12 13 |
# File 'lib/feature_hub/sdk/redis_session_store.rb', line 11 def db @db end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
11 12 13 |
# File 'lib/feature_hub/sdk/redis_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/redis_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/redis_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/redis_session_store.rb', line 11 def retry_update_count @retry_update_count end |