PHP Class Predis\Command\ServerInfo

Author: Daniele Alessandri ([email protected])
Inheritance: extends Command
Datei anzeigen Open project: tillkruss/redis-object-cache Class Usage Examples

Public Methods

Method Description
getId ( )
parseResponse ( $data )

Protected Methods

Method Description
parseAllocationStats ( string $str ) : array Parses the response and extracts the allocation statistics.
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 ( )

parseAllocationStats() protected method

Parses the response and extracts the allocation statistics.
protected parseAllocationStats ( string $str ) : array
$str string Response buffer.
return array

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

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