Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).