redis

package
v2.1.0+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.9.0

type Client struct {
	*rd.Client
}

func NewClient added in v1.9.0

func NewClient(cfg structure.RedisConfiguration) (*Client, error)

func (*Client) UseDb added in v1.9.0

func (c *Client) UseDb(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error)

func (*Client) UseDbTx added in v1.9.0

func (c *Client) UseDbTx(dbIndex DB, f func(p rd.Pipeliner) error) ([]rd.Cmder, error)

type DB

type DB int
const (
	ApplicationTokenDb DB = iota
	ApplicationPermissionDb
	UserTokenDb
	UserPermissionDb
	DeviceTokenDb
	DevicePermissionDb
)

type Option added in v1.9.0

type Option func(client *RxClient)

func WithInitHandler added in v1.9.0

func WithInitHandler(handler initHandler) Option

type RxClient added in v1.9.0

type RxClient struct {
	*Client
	// contains filtered or unexported fields
}

func NewRxClient added in v1.9.0

func NewRxClient(opts ...Option) *RxClient

func (*RxClient) Close added in v1.9.0

func (rc *RxClient) Close() error

func (*RxClient) ReceiveConfiguration added in v1.9.0

func (rc *RxClient) ReceiveConfiguration(cfg structure.RedisConfiguration)

Jump to

Keyboard shortcuts

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