PHP Class Predis\Response\Status

Author: Daniele Alessandri ([email protected])
Inheritance: implements ResponseInterface
Afficher le fichier Open project: tillkruss/redis-object-cache Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $payload )
__toString ( ) : string Converts the response object to its string representation.
get ( string $payload ) : string Returns an instance of a status response object.
getPayload ( ) : string Returns the payload of status response.

Method Details

__construct() public méthode

public __construct ( string $payload )
$payload string Payload of the status response as returned by Redis.

__toString() public méthode

Converts the response object to its string representation.
public __toString ( ) : string
Résultat string

get() public static méthode

Common status responses such as OK or QUEUED are cached in order to lower the global memory usage especially when using pipelines.
public static get ( string $payload ) : string
$payload string Status response payload.
Résultat string

getPayload() public méthode

Returns the payload of status response.
public getPayload ( ) : string
Résultat string