Skip to main content Scroll Top

लिहाफ़

[exclusive] — Crocdb

1. Overview & Definition CrocDB is an open-source, lightweight, and high-performance key-value database written in Go. Its name is a playful nod to "Redis" (like the reptile) while emphasizing its distinct architectural choices. CrocDB is designed for developers who need a fast, embedded database that combines the low-latency benefits of an in-memory store with the durability of on-disk persistence.

If your workload fits entirely in RAM and you need restart safety without operating a full database cluster, CrocDB is an excellent choice. For the latest documentation, source code, and benchmarks, visit the official repository: https://github.com/croc-db/croc crocdb

package main import ( "fmt" "log" "github.com/croc-db/croc" ) err := croc.Open(croc.Options Path: "/data/croc"

func main() db, err := croc.Open(croc.Options Path: "/data/croc", FSyncMode: croc.Periodic, ) if err != nil log.Fatal(err) ) if err != nil log.Fatal(err)