redis

package
v0.0.0-...-6110840 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store redis.Conn

Store variabels

Functions

func GetConnection

func GetConnection() redis.Conn

GetConnection function return store

func GetRowsCached

func GetRowsCached(keys string) (string, error)

GetRowsCached params @keys: string return string, error

func GetToken

func GetToken(context *gin.Context) string

GetToken params @context: *gin.Context return string

func GetTokenData

func GetTokenData(context *gin.Context) string

GetSessionData params @keys: string @scheme: scheme return interface , error

func InitRedis

func InitRedis() (redis.Conn, error)

InitRedis func return: redis.Conn

func RowsCached

func RowsCached(keys string, data []byte, ttl int) ([]byte, error)

RowsCached params @keys: string @data: []byte @ttl: int return []byte, error

Types

This section is empty.

Jump to

Keyboard shortcuts

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