3 ms·
New version of bloomfilter.rb uses SETBIT/GETBIT: https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/bloomfilter/redis.rb https://github.com/igrigorik/
by igrigorik 15y ago
New version of bloomfilter.rb uses SETBIT/GETBIT: https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/bloomfilter/redis.rb https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/...
The "bit" per key was prior to setbit/getbit functionality. The new implementation is, in fact, very efficient.
- MichaelGG 15y agoBut not for the one that supports expiry: https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/bloomfilter/counting_redis.rb#L55 https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/... As the point is to use Redis's expiration feature, which obviously does not apply to individual bits.