I actually guess here, but let it pretend for a while, I did not say it out loud.
Check the writeCommand () function in lib / Predis / Network / StreamConnection.php on line 176 and use it through the SimpleDebuggableConnection in the /SimpleDebuggableConnection.php examples. You still need to define new commands that are not yet defined in lib / predis / commands, as indicated in the wiki referenced by @Colum.
If you really feel weird, change the protected writeBytes () method in StreamConnection on line 96 to public. This should allow you to feed him clean redis with
$redis->getConnection()->writeBytes("*3\r\n$3\r\nSET\r\n$5\r\nmykey\r\n$7\r\nmyvalue\r\n")
Unfortunately, the writeBytes () publication seems to go towards http://en.wikipedia.org/wiki/Object_orgy anti-pattern.
Good luck
source share