-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
Swoole\Table是否可以提供一个获取已经设置的keys函数 #2939
Comments
这个问题 我更推荐用redis |
我的想法是提供一个swoole\ table:: keys(),获取已设置的key。当然在业务层也是能封装一层实现,如果原生底层能提供最好。
…---原始邮件---
发件人: "twosee"<[email protected]>
发送时间: 2019年11月5日(星期二) 晚上10:30
收件人: "swoole/swoole-src"<[email protected]>;
抄送: "Author"<[email protected]>;"黄增冰"<[email protected]>;
主题: Re: [swoole/swoole-src] Swoole\Table是否可以提供一个获取已经设置的keys函数 (#2939)
这个问题 我更推荐用redis
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我的意见还是redis更好 |
你需要遍历。 |
OK,可以实现了
…---原始邮件---
发件人: "韩天峰-Rango"<[email protected]>
发送时间: 2019年11月7日(星期四) 上午10:15
收件人: "swoole/swoole-src"<[email protected]>;
抄送: "Author"<[email protected]>;"黄增冰"<[email protected]>;
主题: Re: [swoole/swoole-src] Swoole\Table是否可以提供一个获取已经设置的keys函数 (#2939)
你需要遍历。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue. Thanks!
主要是在做一些监控时,需要能够获取已经设置的key有哪些,从而可以获取对应的值。
What did you expect to see?
What did you see instead?
What version of Swoole are you using (show your
php --ri swoole
)?What is your machine environment used (including version of kernel & php & gcc) ?
The text was updated successfully, but these errors were encountered: