NOTE

2.1 Redis BloomFilter

Redis BitMaps can hold a Bloom filter's bit array. These notes examine expanding the structure after it reaches a capacity threshold.

Redis / CacheCreated Updated 1 min readhistorical

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.
  • To expand automatically, use a cursor to track the current bitmap. Once it is saturated, create another bitmap of the same size.
  • The get operation then checks whether the element exists in any of the bitmaps.
  • The put operation inserts the element only if it does not exist in any of the bitmaps.

2. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub