cache

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyOschinaTechnicalFields = "oschina_techinal_fields"
	KeyOschinaCategories      = "oschina_categories"

	KeyJuejinCategories = "juejin_categories"
	KeyJuejinTags       = "juejin_tags"
	KeyJuejinColumns    = "juejin_columns"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string, payload any) error
	Set(key string, data any) error
}

type LocalCache

type LocalCache struct {
	// contains filtered or unexported fields
}
var (
	GlobalLocalCache *LocalCache
)

func NewLocalCache

func NewLocalCache(file string) (*LocalCache, error)

func (*LocalCache) Get

func (c *LocalCache) Get(key string, payload any) error

func (*LocalCache) Set

func (c *LocalCache) Set(key string, data any) error

Jump to

Keyboard shortcuts

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