Class: ModelContextProtocol::Server::RedisClientProxy::RedisMultiWrapper
- Inherits:
-
Object
- Object
- ModelContextProtocol::Server::RedisClientProxy::RedisMultiWrapper
- Defined in:
- lib/model_context_protocol/server/redis_client_proxy.rb
Overview
Wrapper for Redis multi/pipeline operations
Instance Method Summary collapse
-
#initialize(multi) ⇒ RedisMultiWrapper
constructor
A new instance of RedisMultiWrapper.
- #method_missing(method, *args, **kwargs, &block) ⇒ Object
- #respond_to_missing?(method, include_private = false) ⇒ Boolean
Constructor Details
#initialize(multi) ⇒ RedisMultiWrapper
Returns a new instance of RedisMultiWrapper.
120 121 122 |
# File 'lib/model_context_protocol/server/redis_client_proxy.rb', line 120 def initialize(multi) @multi = multi end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, **kwargs, &block) ⇒ Object
124 125 126 |
# File 'lib/model_context_protocol/server/redis_client_proxy.rb', line 124 def method_missing(method, *args, **kwargs, &block) @multi.send(method, *args, **kwargs, &block) end |
Instance Method Details
#respond_to_missing?(method, include_private = false) ⇒ Boolean
128 129 130 |
# File 'lib/model_context_protocol/server/redis_client_proxy.rb', line 128 def respond_to_missing?(method, include_private = false) @multi.respond_to?(method, include_private) end |