mirror of
https://github.com/predis/predis.git
synced 2026-08-26 12:39:51 +00:00
18 lines
396 B
PHP
18 lines
396 B
PHP
<?php
|
|
|
|
namespace Predis\Protocols;
|
|
|
|
use Predis\Network\IConnectionSingle;
|
|
|
|
class ResponseStatusHandler implements IResponseHandler {
|
|
public function handle(IConnectionSingle $connection, $status) {
|
|
if ($status === 'OK') {
|
|
return true;
|
|
}
|
|
if ($status === 'QUEUED') {
|
|
return new \Predis\ResponseQueued();
|
|
}
|
|
return $status;
|
|
}
|
|
}
|