https://github.com/seipan/monokage
In-Memory Database Using Bloom Filter
https://github.com/seipan/monokage
bloomfilter go golang inmemory-db
Last synced: about 1 year 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T18:45:04.000Z (over 2 years ago)
- Last Synced: 2025-03-24T01:11:27.069Z (about 1 year 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 main
import "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).