PHP Class Predis\Command\Redis\INFO

Author: Daniele Alessandri ([email protected])
Inheritance: extends Predis\Command\Command
ファイルを表示 Open project: nrk/predis

Public Methods

Method Description
getId ( )
parseNewResponseFormat ( $lines )
parseOldResponseFormat ( $lines )
parseResponse ( $data )

Protected Methods

Method Description
parseDatabaseStats ( string $str ) : array Extracts the statistics of each logical DB from the string buffer.
parseRow ( string $row ) : array Parses a single row of the response and returns the key-value pair.

Method Details

getId() public method

public getId ( )

parseDatabaseStats() protected method

Extracts the statistics of each logical DB from the string buffer.
protected parseDatabaseStats ( string $str ) : array
$str string Response buffer.
return array

parseNewResponseFormat() public method

public parseNewResponseFormat ( $lines )

parseOldResponseFormat() public method

public parseOldResponseFormat ( $lines )

parseResponse() public method

public parseResponse ( $data )

parseRow() protected method

Parses a single row of the response and returns the key-value pair.
protected parseRow ( string $row ) : array
$row string Single row of the response.
return array