| Server IP : 35.80.110.71 / Your IP : 216.73.216.117 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/splitstream/current/vendor/predis/predis/src/Protocol/ |
Upload File : |
<?php
/*
* This file is part of the Predis package.
*
* (c) 2009-2020 Daniele Alessandri
* (c) 2021-2026 Till Krüss
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Protocol;
use Predis\Command\CommandInterface;
use Predis\Connection\CompositeConnectionInterface;
/**
* Defines a pluggable protocol processor capable of serializing commands and
* deserializing responses into PHP objects directly from a connection.
*/
interface ProtocolProcessorInterface
{
/**
* Writes a request over a connection to Redis.
*
* @param CompositeConnectionInterface $connection Redis connection.
* @param CommandInterface $command Command instance.
*/
public function write(CompositeConnectionInterface $connection, CommandInterface $command);
/**
* Reads a response from a connection to Redis.
*
* @param CompositeConnectionInterface $connection Redis connection.
*
* @return mixed
*/
public function read(CompositeConnectionInterface $connection);
}