localcache

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

func (*Cache) GetCache

func (receive *Cache) GetCache(key string) (any, error)

func (*Cache) SetCache

func (receive *Cache) SetCache(key string, value any, expire time.Duration)

type Cacher

type Cacher interface {
	SetCache(key string, value any, expire time.Duration)
	GetCache(key string) (any, error)
}

func NewCacher

func NewCacher(oauth *oauth.OAuth2) Cacher

Jump to

Keyboard shortcuts

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