Sha256: 7af5918b49b52dd8008bae62fa0fec35216520572f99cbe0fb53e893cd45598c
Contents?: true
Size: 501 Bytes
Versions: 7
Compression:
Stored size: 501 Bytes
Contents
<?php namespace Predis\Protocol\Text; use Predis\ResponseQueued; use Predis\Protocol\IResponseHandler; use Predis\Network\IConnectionComposable; class ResponseStatusHandler implements IResponseHandler { public function handle(IConnectionComposable $connection, $status) { switch ($status) { case 'OK': return true; case 'QUEUED': return new ResponseQueued(); default: return $status; } } }
Version data entries
7 entries across 7 versions & 1 rubygems