redis

package
v0.0.0-...-7cf99fd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginKey = "zelus:login"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCache

type UserCache struct {
	Platform state.Platform
	ID       string
	Token    string
	Expire   int
}

func NewUserCache

func NewUserCache() *UserCache

func (*UserCache) Clear

func (m *UserCache) Clear() error

Clear 清除缓存,Platform,ID必要条件

func (*UserCache) GetID

func (m *UserCache) GetID() (string, int, error)

GetID 获取用户编号,Platform,Token必要条件

func (*UserCache) GetToken

func (m *UserCache) GetToken() (string, error)

GetToken 获取token,Platform,ID必要条件

func (*UserCache) Set

func (m *UserCache) Set() error

Set 设置缓存,全部必要条件

Jump to

Keyboard shortcuts

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