driver

package
v2.282.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package driver provides cache driver constructors for go-service.

Index

Constants

View Source
const ErrExpired = cachego.ErrCacheExpired

ErrExpired is an alias for cachego.ErrCacheExpired.

Variables

View Source
var ErrNotFound = errors.New("cache: driver not found")

ErrNotFound for driver.

Functions

func IsExpiredError added in v2.243.0

func IsExpiredError(err error) bool

IsExpiredError checks if the error is an expired error.

Types

type Driver

type Driver = cachego.Cache

Driver is a alias of cachego.

func NewDriver added in v2.73.0

func NewDriver(fs *os.FS, cfg *cache.Config) (Driver, error)

NewDriver creates a new cache driver with different backends.

Jump to

Keyboard shortcuts

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