https://github.com/synodriver/lua-bloom
lua binding to libbloom
https://github.com/synodriver/lua-bloom
Last synced: 8 months ago
JSON representation
lua binding to libbloom
- Host: GitHub
- URL: https://github.com/synodriver/lua-bloom
- Owner: synodriver
- Created: 2022-07-29T07:28:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T07:28:29.000Z (almost 4 years ago)
- Last Synced: 2025-10-12T13:43:16.147Z (8 months ago)
- Language: C
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# lua binding to [libbloom](https://github.com/jvirkki/libbloom)
```lua
local bloom = require("bloom")
local b = bloom.new(1000000, 0.01)
b:add("aaaaaa")
b:add("bbbbb")
if b:check("bbbbb") then
print("It may be there!\n")
end
if b:check("a") then
print("It not be there!\n")
end
b:add("a")
if b:check("a") then
print("It now be there!\n")
end
```