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 (
	WXQR_ACCESS_TOKEN          = "wxqr:%s:access_token"  // string
	WXQR_REFRESH_TOKEN         = "wxqr:%s:refresh_token" // string
	WXQR_REFRESH_TOKEN_EXPIRES = 30 * 24 * 60 * 60       // refresh token过期时间为30天
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	GetAccessToken(appId string) (string, error)
	GetRefreshToken(appId string) (string, error)
	SetAccessToken(appId, accessToken string, expires int) error
	SetRefreshToken(appId, refreshToken string) error
}

func New

func New() Cache

Jump to

Keyboard shortcuts

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