mirror of
https://github.com/predis/predis.git
synced 2026-10-08 21:06:44 +00:00
Initial support for optional parameters when creating a Client instance. Optional authorization and database selection are now performed automatically upon connection.
This commit is contained in:
@@ -11,8 +11,7 @@ $mkv = array(
|
||||
'usr:0003' => 'Third user'
|
||||
);
|
||||
|
||||
$redis = new Predis\Client(REDIS_HOST, REDIS_PORT);
|
||||
$redis->select(REDIS_DB);
|
||||
$redis = Predis\Client::create($configurations);
|
||||
|
||||
$redis->mset($mkv);
|
||||
$retval = $redis->mget(array_keys($mkv));
|
||||
|
||||
Reference in New Issue
Block a user