Skip to main content
Version: 1.5.1

Getting Started

Welcome to KiviGo! This guide will help you get up and running with KiviGo's key-value store library in just a few minutes.

What is KiviGo?โ€‹

KiviGo is a lightweight, modular key-value store library for Go that provides a unified interface for different backends (Redis, BadgerDB, Consul, etcd, etc.) and encoders (JSON, YAML). Each backend is implemented as a separate Go module to minimize dependencies.

Why KiviGo?โ€‹

  • ๐Ÿ”„ Unified Interface: Switch between backends without changing your code
  • ๐Ÿ“ฆ Modular Design: Each backend is a separate module - only install what you need
  • ๐ŸŽฏ Type Safety: Automatic marshaling/unmarshaling of Go types
  • ๐Ÿงช Testing Ready: Built-in mock backend for unit testing
  • โšก Performance: Optimized for both embedded and distributed scenarios
  • ๐Ÿ›ก๏ธ Reliable: Comprehensive error handling and health checks

Quick Overviewโ€‹

Here's what working with KiviGo looks like:

// Setup is backend-specific
client, err := kivigo.New(backend)

// But usage is always the same
err = client.Set(ctx, "key", value) // Store any Go type
err = client.Get(ctx, "key", &value) // Retrieve into any Go type
keys, err := client.List(ctx, prefix) // List keys by prefix
err = client.Delete(ctx, "key") // Remove data

Getting Started Guideโ€‹

Follow these steps to start using KiviGo:

1. ๐Ÿ“ฆ Installationโ€‹

Learn how to install KiviGo core and choose the right backend for your needs.

2. ๐Ÿš€ Quick Startโ€‹

Get up and running with basic examples and understand the fundamentals.

3. โš™๏ธ Operationsโ€‹

Master all available operations: Set, Get, List, Delete, and more.

4. ๐Ÿ’ก Examplesโ€‹

See practical, real-world examples including configuration management, caching, and session storage.

Choose Your Pathโ€‹

Depending on your experience and needs:

๐Ÿ”ฐ New to KiviGo? Start with Installation โ†’ Quick Start

๐ŸŽฏ Want specific operations? Jump to Operations for comprehensive operation guides

๐Ÿ’ผ Looking for real examples? Check out Examples for practical use cases

๐Ÿ—„๏ธ Need a specific backend? Browse Backends to find the perfect storage solution

๐Ÿ”ง Want advanced features? Explore Advanced Features for custom backends, batch operations, and more

Community & Supportโ€‹

What's Next?โ€‹

Ready to start? Begin with Installation to set up KiviGo in your project!