Documentation ¶
Index ¶
- func DelSession(client *redis.Client, id string) (err error)
- func GetBooksFromCache(client *redis.Client, key string) (books []*mysql.Book, err error)
- func GetSession(client *redis.Client, id string) (sid string, err error)
- func InitRedis() (client *redis.Client)
- func SetBooksToCache(client *redis.Client, key string, books []*mysql.Book) (err error)
- func SetSession(client *redis.Client, id string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBooksFromCache ¶
GetBooksFromCache -
func GetSession ¶
GetSession -
func SetBooksToCache ¶
SetBooksToCache -
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.