# 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