cache

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 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 CacheOptions

type CacheOptions struct {
}

CacheOptions contains options for configuring cache

type CacheStore

type CacheStore interface {
	Get(key string) (interface{}, error)
	Set(key string, value interface{}, options *CacheOptions) error
	Delete(key string) error
	Invalidate(options *CacheOptions) error
	Clear() error
}

CacheStore interface

func GetCache

func GetCache() CacheStore

GetCache function

Jump to

Keyboard shortcuts

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