Skip to content

feat(CuckooFilter): add cf.info and cf.count command - #3591

Closed
ChaseForward wants to merge 2 commits into
apache:unstablefrom
ChaseForward:feat-cf-info
Closed

feat(CuckooFilter): add cf.info and cf.count command#3591
ChaseForward wants to merge 2 commits into
apache:unstablefrom
ChaseForward:feat-cf-info

Conversation

@ChaseForward

Copy link
Copy Markdown

part of: #3552

Summary

Add RedisBloom-compatible CF.INFO and CF.COUNT support for Cuckoo Filter.

Design

CF.INFO returns the filter metadata (total slot size, number of buckets,
number of sub-filters, number of items inserted/deleted, bucket size,
expansion rate, max iterations), matching RedisBloom's field order.

CF.INFO key items returns a nested key-value pair for inserted and deleted
counts; CF.INFO key returns all fields as a flat array.

CF.COUNT returns the total number of fingerprint matches across all
sub-filters for the given item, counting each occurrence separately
(duplicates inserted via CF.ADD are all counted), without modifying any
slot.

This PR was written using TRAE.

@github-actions

Copy link
Copy Markdown

Hi @ChaseForward,

Thank you for your pull request. Please review our Contributing Guide.

Please make sure you understand your changes and explain your reasoning in this pull request. Low-quality pull requests may be closed.

@jihuayu

jihuayu commented Aug 14, 2026

Copy link
Copy Markdown
Member

Hi @ChaseForward Thank you for your contribution. Unless there is a necessary reason to do otherwise, please limit each PR to adding a single command.

I’m going to close this PR. You can split it into two separate PRs and resubmit them.

@jihuayu jihuayu closed this Aug 14, 2026
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

Successfully merging this pull request may close these issues.

2 participants