yiisoft / yii2-redis

Yii 2 Redis extension.
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
452 stars 183 forks source link

how to use redis setOption()? #184

Closed uRoft closed 5 years ago

uRoft commented 5 years ago

What steps will reproduce the problem?

I use yii-redis hscan commands to foreach data.

What's expected?

but php allow memory.

What do you get instead?

The possible reason is that no client options are set. $redis->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY);

Additional info

how to set it? Q A
Yii vesion 2.0.20
PHP version 7.2.7
Operating system Linux
yii-bot commented 5 years ago

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

uRoft commented 5 years ago

sorry,I found its code problems

TsaiQuinn commented 1 year ago

yii2的redis怎么没有setOption 方法呢?