Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Documentation of DBSIZE could use improvement #194

@SjorsO

Description

@SjorsO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions