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
看了一下源码,在vendor/swoft/redis/src/Connection/Connection.php 的$supportedMethods数组变量里面加上select命令就好了,官方能否加一下呢?
之前老业务一个redis实例里面用了很多的db,如果不支持select命令的话,需要写非常多的redis配置
The text was updated successfully, but these errors were encountered:
redis->call( function( $redis) { $redis->select() });
Sorry, something went wrong.
@studyzhanglei 先用下这样的呢
好的,多谢~
这样不行,只有在匿名函数内redis db才会变化,比如在匿名函数内部使用了select(10),外部还是默认的db
@studyzhanglei redis 每次执行都会 从连接池获取连接 select 需要保证在同一连接
用完了需要自己重置才行喔
每次 redis 操作可能用的不是一个连接
swoft-cloud/swoft-component@7f08af4
fix: swoft-cloud/swoft/issues/1312 redis not support select command
6c8e624
stelin
inhere
sakuraovq
No branches or pull requests
看了一下源码,在vendor/swoft/redis/src/Connection/Connection.php 的$supportedMethods数组变量里面加上select命令就好了,官方能否加一下呢?
之前老业务一个redis实例里面用了很多的db,如果不支持select命令的话,需要写非常多的redis配置
The text was updated successfully, but these errors were encountered: