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

Documentation of DBSIZE could use improvement #194

Open
SjorsO opened this issue Apr 28, 2020 · 0 comments
Open

Documentation of DBSIZE could use improvement #194

SjorsO opened this issue Apr 28, 2020 · 0 comments

Comments

@SjorsO
Copy link

SjorsO commented Apr 28, 2020

The documentation page for DBSIZE has no description. I've been trying to find a way to count all keys in a database. I want to make sure I don't count expired keys. The issue is that I'm not sure if DBSIZE counts expired keys that haven't been garbage collected yet.

This answer on StackOverflow mentions that DBSIZE might count expired keys. It says "it may still count", which is pretty vague. Other answers that recommend DBSIZE don't mention anything about expired keys.

The question My slave claims to have a different number of keys compared to its master, why? in the FAQ mentions that DBSIZE might contain expired keys (if I understand correctly).

It would be nice if the DBSIZE documentation page has a short description that explains how expired keys are counted.

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