kvdb
kv-db is a embedded key-value database.
package main
import "git.markveres.ro/mark/kvdb"
func main() {
db, err := kvdb.Open(":memory:")
if err != nil {
panic(err)
}
db.Set("key", "value")
db.Get("key")
}
Features
- embedded
- in memory or persistent
- uses mutex for extra safety
TODO:
- write the DB::Sort function
- write the DB::Expire function