NOTE
2.1 Redis BloomFilter
A Redis-based BloomFilter implementation idea using BitMaps and automatic expansion.
This is a historical learning note and may contain outdated or incomplete understanding.
1. Redis Implementation
- The bit array can be implemented with Redis BitMaps.
- Automatic expansion can use a cursor to record the current BitMaps position. After saturation is reached, create another BitMaps of the same size.
- Then the
getlogic becomes checking whether the element exists in any BitMaps. - The
putlogic also becomes inserting only when the element does not exist in any BitMaps.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub