Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seipan/monokage
In-Memory Database Using Bloom Filter
https://github.com/seipan/monokage
bloomfilter go golang inmemory-db
Last synced: about 2 months ago
JSON representation
In-Memory Database Using Bloom Filter
- Host: GitHub
- URL: https://github.com/seipan/monokage
- Owner: seipan
- License: mit
- Created: 2023-11-12T16:25:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-29T18:45:04.000Z (about 1 year ago)
- Last Synced: 2024-12-01T18:13:02.921Z (about 2 months ago)
- Topics: bloomfilter, go, golang, inmemory-db
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monokage
In-Memory Database Using Bloom Filter## Installation
```
go get -u github.com/seipan/monokage
```## Usage
```go
package mainimport "github.com/seipan/monokage"
func main() {
db := monokage.NewDB(100, 10)
db.Insert([]byte("hello"))
db.Insert([]byte("world"))ok := db.Check([]byte("hello"))
if ok {
println("hello is in the database")
}else{
println("hello is not in the database")
}}
```
## License
Code licensed under
[the MIT License](https://github.com/seipan/monokage/blob/main/LICENSE).## Author
[seipan](https://github.com/seipan).