cache

package
v0.0.1-2022051101155 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	WXMP_SESSION_KEY         = `wxmp:%s:session`
	WXMP_ACCESS_TOKEN        = `wxmp:%s:accesstoken`
	WXMP_SESSION_KEY_EXPIRES = 3600 // session key过期时间3600秒
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetSessKey(appId string) (string, error)
	SetSessKey(appId, sessKey string) error
	GetAccessToken(appId string) (string, error)
	SetAccessToken(appId, accessToken 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