datasource

package
v0.0.0-...-099a909 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceDbMaster

func InstanceDbMaster() *xorm.Engine

得到唯一的主库实例

func NewDbMaster

func NewDbMaster() *xorm.Engine

Types

type RedisConn

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

封装成一个redis资源池

func InstanceCache

func InstanceCache() *RedisConn

得到唯一的redis缓存实例

func NewCache

func NewCache() *RedisConn

重新实例化

func (*RedisConn) Do

func (rds *RedisConn) Do(commandName string, args ...interface{}) (reply interface{}, err error)

func (*RedisConn) ShowDebug

func (rds *RedisConn) ShowDebug(show bool)

Jump to

Keyboard shortcuts

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