Class: ModelContextProtocol::Server::RedisConfig::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/model_context_protocol/server/redis_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



98
99
100
101
102
103
104
105
# File 'lib/model_context_protocol/server/redis_config.rb', line 98

def initialize
  @redis_url = nil
  @pool_size = 20
  @pool_timeout = 5
  @enable_reaper = true
  @reaper_interval = 60
  @idle_timeout = 300
end

Instance Attribute Details

#enable_reaperObject

Returns the value of attribute enable_reaper.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def enable_reaper
  @enable_reaper
end

#idle_timeoutObject

Returns the value of attribute idle_timeout.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def idle_timeout
  @idle_timeout
end

#pool_sizeObject

Returns the value of attribute pool_size.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def pool_size
  @pool_size
end

#pool_timeoutObject

Returns the value of attribute pool_timeout.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def pool_timeout
  @pool_timeout
end

#reaper_intervalObject

Returns the value of attribute reaper_interval.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def reaper_interval
  @reaper_interval
end

#redis_urlObject

Returns the value of attribute redis_url.



95
96
97
# File 'lib/model_context_protocol/server/redis_config.rb', line 95

def redis_url
  @redis_url
end