cache

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Put(key string, value []byte) error
	Get(key string) ([]byte, error)
	Clear() error
	Close() error
}

Cache interface

func New

func New(conn string) (Cache, error)

New create new cache provider regarding the datasource URI

func NewDefault

func NewDefault(name string) (Cache, error)

NewDefault return default cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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