redis

package
v0.0.0-...-bd304fc Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelSession

func DelSession(client *redis.Client, id string) (err error)

DelSession -

func GetBooksFromCache

func GetBooksFromCache(client *redis.Client, key string) (books []*mysql.Book, err error)

GetBooksFromCache -

func GetSession

func GetSession(client *redis.Client, id string) (sid string, err error)

GetSession -

func InitRedis

func InitRedis() (client *redis.Client)

InitRedis -

func SetBooksToCache

func SetBooksToCache(client *redis.Client, key string, books []*mysql.Book) (err error)

SetBooksToCache -

func SetSession

func SetSession(client *redis.Client, id string) (err error)

SetSession -

Types

This section is empty.

Jump to

Keyboard shortcuts

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