Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 1.56 KB

README.md

File metadata and controls

52 lines (43 loc) · 1.56 KB

KV - Key-Value Store

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get github.com/go-zoox/kv

Getting Started

func TestMemoryKV(t *testing.T) {
	m := kv.NewMemory()
	if m.Size() != 0 {
		t.Errorf("Expected size 0, got %d", m.Size())
	}

	m.Set("key", "value")
	if m.Get("key") != "value" {
		t.Error("Expected value to be 'value'")
	}

	if m.Size() != 1 {
		t.Errorf("Expected size 1, got %d", m.Size())
	}
}

Engines

  • Memory
  • Redis
  • MongoDB
  • SQLite
  • FileSystem
  • PostgreSQL
  • MySQL
  • DynamoDB
  • JSONRPC

Inspired by

License

GoZoox is released under the MIT License.