resource

package
v0.0.0-...-83b6c11 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseConn *sqlx.DB

Functions

func GetDatabaseConn

func GetDatabaseConn() *sqlx.DB

func InitDatabase

func InitDatabase()

func InitRedisConn

func InitRedisConn()

Types

type RedisCache

type RedisCache struct {
	// contains filtered or unexported fields
}

RedisCache implementation of redis

var RedisConn RedisCache

func GetRedisConn

func GetRedisConn() RedisCache

func (*RedisCache) MultiHashGetPipeline

func (r *RedisCache) MultiHashGetPipeline(keys map[string][]string) (map[string]map[string]string, error)

func (*RedisCache) MultiHashSetPipeline

func (r *RedisCache) MultiHashSetPipeline(datas map[string][]string) (errs []error)

Jump to

Keyboard shortcuts

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