We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details
redis pool use hscan,but the iterator not change
var_dump('hscan----------------------'); $iterator = null; // use \Redis (right) $redis = new \Redis(); $redisBean = \Swoft::getBean('redis'); $redis->pconnect($redisBean->getHost(), $redisBean->getPort()); !empty($redisBean->getPassword()) && $redis->auth($redisBean->getPassword()); $redis->select($redisBean->getDatabase()); $redis->setOption(\Redis::OPT_SCAN,\Redis::SCAN_RETRY); $redis->hScan(config('redisKey.uidFdRelation'), $iterator,'*',10); var_dump($iterator); //use \Redis (right) output //string(27) "hscan----------------------" //int(320) // use pool(wrong) // $this->redisDb->setOption(\Redis::OPT_SCAN,\Redis::SCAN_RETRY); // $this->redisDb->hScan(config('redisKey.uidFdRelation'), $iterator,'*',20) // var_dump($iterator); //use swoft redis pool (wrong) output //string(27) "hscan----------------------" //NULL
The text was updated successfully, but these errors were encountered:
stelin
inhere
sakuraovq
No branches or pull requests
Details
The text was updated successfully, but these errors were encountered: