Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.2 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.2 KB

kdb

Lint Code Base

Distributed key-value Store Abstraction Library written in Go.

Inspired by streamingfast/kvdb, used by BitRainforest.

Stage: Alpha

Usage

example

Backends

badger

  • dsn: badger:///Users/john/kdb/badger-db.db?compression=zstd
  • compression: snappy, zstd, none
  • example: store/badger/dsn_test.go

etcd

  • dns: etcd://username:password@localhost:2379,localhost:2380?compression=zstd&threshold=64
  • compression: zstd, none
  • threshold: compression threshold in bytes
  • example: store/etcd/dsn_test.go

redis

  • dsn: redis://username:password@localhost:6379/1?timeout=5s&compression=zstd&threshold=64
  • compression: zstd, none
  • threshold: compression threshold in bytes
  • example: store/redis/dsn_test.go, Redis-URI

Tests

go test ./...