redis

package
v0.0.0-...-b390238 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisPool

func NewRedisPool(host string, MaxIdle int, MaxActive int, idletimeout time.Duration) redis.Pool

Types

type DataFunc

type DataFunc func(string)

type RedisConn

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

func NewRedisConn

func NewRedisConn(pool redis.Pool) RedisConn

func (RedisConn) Publish

func (rp RedisConn) Publish(channel, message string) (int, error)

func (RedisConn) SubscribeChannel

func (rp RedisConn) SubscribeChannel(channel string, handleMessage DataFunc)

Jump to

Keyboard shortcuts

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