Class: RedisClient::BasicMiddleware
- Inherits:
-
Object
- Object
- RedisClient::BasicMiddleware
- Defined in:
- lib/redis_client/middlewares.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #call(command, _config) {|command| ... } ⇒ Object (also: #call_pipelined)
- #connect(_config) ⇒ Object
-
#initialize(client) ⇒ BasicMiddleware
constructor
A new instance of BasicMiddleware.
Constructor Details
#initialize(client) ⇒ BasicMiddleware
Returns a new instance of BasicMiddleware.
7 8 9 |
# File 'lib/redis_client/middlewares.rb', line 7 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/redis_client/middlewares.rb', line 5 def client @client end |
Instance Method Details
#call(command, _config) {|command| ... } ⇒ Object Also known as: call_pipelined
15 16 17 |
# File 'lib/redis_client/middlewares.rb', line 15 def call(command, _config) yield command end |
#connect(_config) ⇒ Object
11 12 13 |
# File 'lib/redis_client/middlewares.rb', line 11 def connect(_config) yield end |