Categorygithub.com/whosonfirst/go-cache-sqlite
modulepackage
0.0.1
Repository: https://github.com/whosonfirst/go-cache-sqlite.git
Documentation: pkg.go.dev

# README

go-cache-sqlite

SQLite driver for the whosonfirst/go-cache interface

Important

Work in progress. Documentation to follow.

Usage

Error handling omitted for the sake of brevity.

import (
	"context"
	"github.com/whosonfirst/go-cache"
	_ "github.com/whosonfirst/go-cache-sqlite"
	"io"
	"os"
	"strings"
)

func main() {

	ctx := context.Background()
	c, _ := cache.NewCache(ctx, "sqlite://?dsn=test.db")

	cache.SetString(ctx, c, "hello", "world")

	r, _ := c.Get(ctx, "hello")
	io.Copy(os.Stdout, r)
}

See also

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author