Class: ModelContextProtocol::Server::RedisConfig::Configuration
- Inherits:
-
Object
- Object
- ModelContextProtocol::Server::RedisConfig::Configuration
- Defined in:
- lib/model_context_protocol/server/redis_config.rb
Instance Attribute Summary collapse
-
#enable_reaper ⇒ Object
Returns the value of attribute enable_reaper.
-
#idle_timeout ⇒ Object
Returns the value of attribute idle_timeout.
-
#pool_size ⇒ Object
Returns the value of attribute pool_size.
-
#pool_timeout ⇒ Object
Returns the value of attribute pool_timeout.
-
#reaper_interval ⇒ Object
Returns the value of attribute reaper_interval.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_reaper ⇒ Object
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_timeout ⇒ Object
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_size ⇒ Object
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_timeout ⇒ Object
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_interval ⇒ Object
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_url ⇒ Object
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 |