redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelToken

func DelToken(id string)

DelToken deletes a token from Redis

func GetAccountInfo

func GetAccountInfo(id string) string

GetAccountInfo retrieves account information from Redis for the given ID

func GetMemberCredentials

func GetMemberCredentials(totalColumns int) ([]string, []string, []string, bool)

GetMemberCredentials retrieves member credentials from Redis

func GetUserCredentials

func GetUserCredentials(totalColumns int) ([]string, []string, []string, []string, bool)

GetUserCredentials retrieves user credentials from Redis

func RedisConnect

func RedisConnect() *redis.Client

RedisConnect establishes a connection to Redis and returns a Redis client

func SetAccountInfo

func SetAccountInfo(id, MyValue string)

SetAccountInfo stores account information in Redis for the given ID

func SetMemberCredentials

func SetMemberCredentials(value [3]string)

SetMemberCredentials stores member credentials in Redis

func SetUserCredentials

func SetUserCredentials(value [4]string)

SetUserCredentials stores user credentials in Redis

Types

type MyInfo

type MyInfo struct {
	MyKey string
}

Jump to

Keyboard shortcuts

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