redis

package
v0.0.0-...-59da782 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConn

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

func NewRedisConn

func NewRedisConn(conn redis.Conn) *RedisConn

func (*RedisConn) Close

func (conn *RedisConn) Close() error

func (*RedisConn) Do

func (conn *RedisConn) Do(commandName string, args ...interface{}) (interface{}, error)

func (*RedisConn) NewTx

func (conn *RedisConn) NewTx() (*RedisTx, error)

func (*RedisConn) Send

func (conn *RedisConn) Send(commandName string, args ...interface{}) error

type RedisTx

type RedisTx struct {
	*RedisConn
}

func (*RedisTx) Commit

func (t *RedisTx) Commit() error

func (*RedisTx) RollBack

func (t *RedisTx) RollBack()

Jump to

Keyboard shortcuts

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