tokenCache

package
v0.0.0-...-3208bda Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UserTokenCacheKeyPrefix = "user.token."

Variables

This section is empty.

Functions

func DeleteToken

func DeleteToken(key string) int

从redis删除token

func GetToken

func GetToken(key string) string

从redis获取token

func SetToken

func SetToken(key, token string) bool

设置Token到redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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