Skip to content

go-zoox/kv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

KV - Key-Value Store

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages