piperedis

package module
v0.0.0-...-2c18143 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 6 Imported by: 1

README

piperedis

Automatically pipelined redis client for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(client redis.UniversalClient, option Option) (*Client, error)

func (*Client) Close

func (c *Client) Close() (err error)

func (*Client) Do

func (c *Client) Do(ctx context.Context, args ...interface{}) *redis.Cmd

type Option

type Option struct {
	NumBackgroundWorker    int
	ChannelBufferSize      int
	MinCollectInterval     time.Duration
	MaxNRequestsInPipeline int
}

Jump to

Keyboard shortcuts

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