mirror of
https://github.com/predis/predis.git
synced 2026-08-24 18:49:41 +00:00
cf581a3b49
By raw we mean that input arguments are not filtered and responses are not parsed, which means arguments must follow the command signature as defined by Redis and complex responses are left untouched. When instantiating an instance of `Predis\Command\RawCommand` you must pass at least the command ID. You can pass further arguments in the array or you can just set them later with `RawCommand::setArguments()` but you cannot modify the command ID once instantiated. $command = new Predis\Command\RawCommand(['SET', 'foo', 'bar']); $response = $client->executeCommand($command); While higher level abstractions built upon `Predis\Client` should just use commands created by the profile in use, inner parts of the library might use raw commands to provide certain functionalities making sure that input and output of commands are always consistent, independent of the profile.