Skip to content

SCAN command returns keys of expired data structures #326

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

Closed
cduluCNB opened this issue Apr 25, 2024 · 2 comments · Fixed by #331
Closed

SCAN command returns keys of expired data structures #326

cduluCNB opened this issue Apr 25, 2024 · 2 comments · Fixed by #331
Assignees

Comments

@cduluCNB
Copy link
Contributor

Describe the bug

Thank you @TedHartMS for fixing #151 for strings, now I'm seeing the same behavior for data structures where expired keys are showing in a SCAN. Apologies that I should have tried testing the data structures in addition to strings.

2024-04-25 07_56_27-127 0 0 1_3278 - Browser
2024-04-25 08_01_47-Memurai

Steps to reproduce the bug

Add any data structure type with an expiry (Hash, List, Set, Sorted Set) and wait until it expires.

Run the SCAN command (i.e. SCAN *)

Expected behavior

The expired data structures should not appear in the list when SCAN is run.

Screenshots

No response

Release version

v1.0.6

IDE

No response

OS version

Windows 11

Additional context

No response

@TedHartMS
Copy link
Collaborator

I should have tried testing the data structures in addition to strings.

That makes two of us :) Thanks for the catch!

@cduluCNB
Copy link
Contributor Author

Thank you @TedHartMS! Verified working with the latest version of main. I can finally use RedisInsight properly now!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants