redis

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockedProfile

func BlockedProfile(redisCli *redis.Client, profileID string, duration time.Duration) error

func ClearAuthToken

func ClearAuthToken(redisCli *redis.Client, uid string) error

func IsAuthTokenExist

func IsAuthTokenExist(redisCli *redis.Client, uid string) (bool, error)

func IsAuthTokenSame

func IsAuthTokenSame(redisCli *redis.Client, uid, token string) (bool, error)

func IsBlocked

func IsBlocked(redisCli *redis.Client, profileID string) (bool, error)

func NewBlockListKey

func NewBlockListKey(uid string) (key.Key, error)

func NewTokenKey

func NewTokenKey(token string) (key.Key, error)

func SaveAuthToken

func SaveAuthToken(redisCli *redis.Client, uid, token string, duration time.Duration) error

func UnBlockedProfile

func UnBlockedProfile(redisCli *redis.Client, profileID string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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