Ask how to use hiredis under swoole

The asynchronous redis client in the

swoole document reads as follows:

< H1 > swoole_redis- > _ _ call < / H1 >

Magic method, the method name is mapped to the Redis instruction, and the parameter is used as the parameter of the Redis instruction.

$redis->hmset("test", "a 1 b 2", function (\Swoole\Redis $redis, bool $result) {
    if ($result === false) {
        var_dump($redis->errMsg);
    }
})

ask the Great God for guidance

Apr.02,2021

Hmset key field value

$redis->hmset('test', 'tfiled', 'a 1 b 2', function (\Swoole\Redis $redis, bool $result) {
    if ($result === false) {
        var_dump($redis->errMsg);
    }
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34d77-e496.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34d77-e496.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?