mirror of
https://github.com/predis/predis.git
synced 2026-08-29 19:55:45 +00:00
Remove since it generates overhead for nothing really useful.
This commit is contained in:
@@ -127,6 +127,10 @@ class Client {
|
||||
$this->_connection->disconnect();
|
||||
}
|
||||
|
||||
public function quit() {
|
||||
$this->disconnect();
|
||||
}
|
||||
|
||||
public function isConnected() {
|
||||
return $this->_connection->isConnected();
|
||||
}
|
||||
|
||||
@@ -35,10 +35,6 @@ abstract class Command implements ICommand {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function closesConnection() {
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ use Predis\Distribution\IDistributionStrategy;
|
||||
interface ICommand {
|
||||
public function getCommandId();
|
||||
public function canBeHashed();
|
||||
public function closesConnection();
|
||||
public function getHash(IDistributionStrategy $distributor);
|
||||
public function setArgumentsArray(Array $arguments);
|
||||
public function getArguments();
|
||||
|
||||
@@ -40,9 +40,6 @@ abstract class ConnectionBase implements IConnectionSingle {
|
||||
|
||||
public function executeCommand(ICommand $command) {
|
||||
$this->writeCommand($command);
|
||||
if ($command->closesConnection()) {
|
||||
return $this->disconnect();
|
||||
}
|
||||
return $this->readResponse($command);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user