Méthode | Description | |
---|---|---|
__call ( string $name, array $args ) : mixed | Magic method to handle all function requests and prefix key based operations with the {self::$defaultNamespace} key prefix. | |
__construct ( string | array $server, integer $database = null, object $client = null ) | ||
getPrefix ( ) | ||
parseDsn ( string $dsn ) : array | Parse a DSN string, which can have one of the following formats: | |
prefix ( string $namespace ) | Set Redis namespace (prefix) default: resque | |
removePrefix ( $string ) |
public __construct ( string | array $server, integer $database = null, object $client = null ) | ||
$server | string | array | A DSN or array |
$database | integer | A database number to select. However, if we find a valid database number in the DSN the DSN-supplied value will be used instead and this parameter is ignored. |
$client | object | Optional Credis_Cluster or Credis_Client instance instantiated by you |