Class: Dalli::Elasticache::AutoDiscovery::StatsCommand

Inherits:
BaseCommand
  • Object
show all
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

#host, #port

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

#commandObject


17
18
19
# File 'lib/dalli/elasticache/auto_discovery/stats_command.rb', line 17

def command
  STATS_COMMAND
end

#responseObject


13
14
15
# File 'lib/dalli/elasticache/auto_discovery/stats_command.rb', line 13

def response
  StatsResponse.new(send_command)
end