*/ 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); }