Class: Dalli::Elasticache::AutoDiscovery::StatsCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Dalli::Elasticache::AutoDiscovery::StatsCommand
- Defined in:
- lib/dalli/elasticache/auto_discovery/stats_command.rb
Overview
Encapsulates execution of the ‘stats’ command, which is used to extract the engine_version
Constant Summary collapse
- STATS_COMMAND =
"stats\r\n"
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
#initialize, #response_from_socket, #send_command
Constructor Details
This class inherits a constructor from Dalli::Elasticache::AutoDiscovery::BaseCommand
Instance Method Details
#command ⇒ Object
17 18 19 |
# File 'lib/dalli/elasticache/auto_discovery/stats_command.rb', line 17 def command STATS_COMMAND end |
#response ⇒ Object
13 14 15 |
# File 'lib/dalli/elasticache/auto_discovery/stats_command.rb', line 13 def response StatsResponse.new(send_command) end |