cache

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCacheType = errors.New("invalid cache type")

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(cache contract.Cache) *Driver

func NewDriverWith

func NewDriverWith(cache contract.Cache, options Options) *Driver

func (*Driver) Delete

func (d *Driver) Delete(ctx context.Context, id string) error

func (*Driver) Get

func (d *Driver) Get(ctx context.Context, id string) (contract.Session, error)

func (*Driver) Save

func (d *Driver) Save(ctx context.Context, session contract.Session, ttl time.Duration) error

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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