https://github.com/cafjs/caf_bloom
CAF library to create a Bloom filter backed by Redis
https://github.com/cafjs/caf_bloom
Last synced: 5 months ago
JSON representation
CAF library to create a Bloom filter backed by Redis
- Host: GitHub
- URL: https://github.com/cafjs/caf_bloom
- Owner: cafjs
- Created: 2017-02-03T07:42:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-11T01:06:46.000Z (over 5 years ago)
- Last Synced: 2025-08-17T20:59:03.297Z (10 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# Caf.js
Co-design permanent, active, stateful, reliable cloud proxies with your web app or gadget.
See https://www.cafjs.com
## Library for Bloom Filters
[](https://travis-ci.org/cafjs/caf_bloom)
This library creates a Bloom filter backed by Redis.
## API
See {@link module:caf_bloom/proxy_bloom}
## Configuration Example
### framework.json
See {@link module:caf_bloom/plug_bloom}
{
"name": "bloom",
"module": "caf_bloom#plug",
"description": "Bloom filter service. Defaults give for a population of 10,000,000 a false positive rate of 0.0001",
"env" : {
"service" : "process.env.BLOOM_SERVICE||cp",
"size" : "process.env.BLOOM_SIZE||191701168",
"slices" : "process.env.BLOOM_SLICES||13",
"bitFieldName" : "process.env.BLOOM_BIT_FIELD_NAME||allCAs"
}
}
### ca.json
See {@link module:caf_bloom/plug_ca_bloom} and {@link module:caf_bloom/proxy_bloom}
{
"module": "caf_bloom#plug_ca",
"name": "bloom",
"description": "Bloom filter service.",
"env" : {
"maxRetries" : "$._.env.maxRetries",
"retryDelay" : "$._.env.retryDelay"
},
"components" : [
{
"module": "caf_bloom#proxy",
"name": "proxy",
"description": "Proxy to bloom filter",
"env" : {
}
}
]
}