PHP Class Predis\Profile\Factory

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

Méthodes publiques

Méthode Description
define ( string $alias, string $class ) Registers a new server profile.
get ( string $version ) : Predis\Profile\ProfileInterface Returns the specified server profile.
getDefault ( ) : Predis\Profile\ProfileInterface Returns the default server profile.
getDevelopment ( ) : Predis\Profile\ProfileInterface Returns the development server profile.

Private Methods

Méthode Description
__construct ( )

Method Details

define() public static méthode

Registers a new server profile.
public static define ( string $alias, string $class )
$alias string Profile version or alias.
$class string FQN of a class implementing Predis\Profile\ProfileInterface.

get() public static méthode

Returns the specified server profile.
public static get ( string $version ) : Predis\Profile\ProfileInterface
$version string Profile version or alias.
Résultat Predis\Profile\ProfileInterface

getDefault() public static méthode

Returns the default server profile.
public static getDefault ( ) : Predis\Profile\ProfileInterface
Résultat Predis\Profile\ProfileInterface

getDevelopment() public static méthode

Returns the development server profile.
public static getDevelopment ( ) : Predis\Profile\ProfileInterface
Résultat Predis\Profile\ProfileInterface