Skip to content
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

Resque support for scan parameters #33

Open
phpxianyu opened this issue Nov 23, 2020 · 0 comments
Open

Resque support for scan parameters #33

phpxianyu opened this issue Nov 23, 2020 · 0 comments

Comments

@phpxianyu
Copy link

phpxianyu commented Nov 23, 2020

The return value of 'scan' in 'redis' is a cursor and an array,' scan 'in' resque 'is an array, What do you suggest

127.0.0.1:6379[7]> scan 0 match worker:job:* count 100
1) "0"
2) 1) "worker:job:backend\\modules\\job\\resque:10"
   2) "worker:job:backend\\modules\\job\\resque:20"
$resqueList = Resque::redis()->scan($cursor,'worker:job:*',"100");
return $resqueList;

The return values are as follows
[
"worker:job:backend\modules\job\resque:10",
"worker:job:backend\modules\job\resque:20"
]
@rolies106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant