redis

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient added in v1.6.5

func NewRedisClient(source *RedisDataSource) redis.IClient

Types

type RedisDataSource

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

func NewRedis

func NewRedis(configuration abstractions.IConfiguration) *RedisDataSource

NewMysqlDataSource 初始化MySQL数据源

func (*RedisDataSource) Close

func (datasource *RedisDataSource) Close()

func (*RedisDataSource) GetConnectionString

func (datasource *RedisDataSource) GetConnectionString() string

func (*RedisDataSource) GetName

func (datasource *RedisDataSource) GetName() string

func (*RedisDataSource) Open

func (datasource *RedisDataSource) Open() (conn interface{}, put func(), err error)

func (*RedisDataSource) Ping

func (datasource *RedisDataSource) Ping() bool

type RedisHealthIndicator added in v1.6.5

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

func NewRedisHealthIndicator added in v1.6.5

func NewRedisHealthIndicator(client redis.IClient) *RedisHealthIndicator

func (*RedisHealthIndicator) Health added in v1.6.5

Jump to

Keyboard shortcuts

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