cache

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WXOA_ACCESS_TOKEN = "wxoa:%s:accesstoken" // string
	WXOA_TICKET       = "wxoa:ticket"         // string
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetAccessToken(appId string) (string, error)
	SetAccessToken(appId, token string, expires int) error
	GetTicket() (string, error)
	SetTicket(ticket string, expires int) error
}

func New

func New() Cache

Jump to

Keyboard shortcuts

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