Removed Predis\Client::registerCommand and Predis\Client::registerCommands as they are rarely used. The methods of the same name available in RedisServerProfile (and its derivates) serve the same purpose, use them from now on.

This commit is contained in:
Daniele Alessandri
2010-01-01 17:46:34 +01:00
parent 99ad5aa4a5
commit cd8604b489
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ client instance at runtime. Actually, it is easier done than said:
}
$redis = new Predis\Client();
$redis->registerCommand('BrandNewRedisCommand', 'newcmd');
$redis->getProfile()->registerCommand('BrandNewRedisCommand', 'newcmd');
$redis->newcmd();
-7
View File
@@ -161,13 +161,6 @@ class Client {
return $multiExecBlock !== null ? $multiExec->execute($multiExecBlock) : $multiExec;
}
public function registerCommands(Array $commands) {
$this->_serverProfile->registerCommands($commands);
}
public function registerCommand($command, $aliases) {
$this->_serverProfile->registerCommand($command, $aliases);
}
}
/* ------------------------------------------------------------------------- */