cache

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NilUserCache

type NilUserCache struct {
}

NilUserCache 空实现

func NewNilUserCache

func NewNilUserCache() *NilUserCache

NewNilUserCache 实例化

func (*NilUserCache) GetUserFromCache

func (*NilUserCache) GetUserFromCache(username string) (userdetails.UserDetails, error)

GetUserFromCache 从缓存中获取用户信息

func (*NilUserCache) PutUserInCache

func (*NilUserCache) PutUserInCache(user userdetails.UserDetails) error

PutUserInCache 增加缓存

func (*NilUserCache) RemoveUserFromCache

func (*NilUserCache) RemoveUserFromCache(username string) error

RemoveUserFromCache 移除缓存

Jump to

Keyboard shortcuts

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