store

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package store provides a registry and entry point for cache backends.

This package allows you to register cache drivers and open cache connections using a DSN string. It acts as a facade over the internal registry and the driver interfaces defined in the driver subpackage.

Most users will interact with this package to register drivers and open cache connections, while backend implementations should use the driver subpackage to define new cache backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() []string

Drivers returns a sorted list of the names of the registered drivers.

func Open

func Open(dsn string) (driver.Conn, error)

Open opens a cache connection using the provided DSN.

func Register

func Register(name string, driver driver.Driver)

Register makes a driver implementation available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.

Types

This section is empty.

Directories

Path Synopsis
Package acceptance provides a suite of acceptance tests for Cache implementations.
Package acceptance provides a suite of acceptance tests for Cache implementations.
Package driver defines interfaces to be implemented by cache backends as used by the github.com/bartventer/httpcache/store package.
Package driver defines interfaces to be implemented by cache backends as used by the github.com/bartventer/httpcache/store package.
Package expapi provides HTTP handlers for managing and interacting with cache backends.
Package expapi provides HTTP handlers for managing and interacting with cache backends.
Package fscache implements a file system-based cache backend.
Package fscache implements a file system-based cache backend.
internal
registry
Package registry provides a registry for cache drivers.
Package registry provides a registry for cache drivers.
Package memcache implements an in-memory cache backend.
Package memcache implements an in-memory cache backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL