Class: FeatureHub::Sdk::MemcacheSessionStoreOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/feature_hub/sdk/memcache_session_store.rb

Overview

Optional configuration for MemcacheSessionStore.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeoutObject (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

#loggerObject (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

#prefixObject (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_timeoutObject (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_countObject (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