pipeliner

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(pipeliner redis.Pipeliner) *Adapter

func (*Adapter) Exec

func (a *Adapter) Exec(ctx context.Context) ([]redis.Cmder, error)

Exec executes all previously queued commands in a transaction and restores the connection state to normal.

func (*Adapter) Expire

func (a *Adapter) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

Expire sets a timeout on key. After the timeout has expired, the key will automatically be deleted.

func (*Adapter) ZAdd

func (a *Adapter) ZAdd(ctx context.Context, key string, members ...redis.Z) *redis.IntCmd

ZAdd adds all the specified members with the specified scores to the sorted set stored at key.

func (*Adapter) ZRange

func (a *Adapter) ZRange(ctx context.Context, key string, start, stop int64) *redis.StringSliceCmd

ZRange returns the specified range of elements in the sorted set stored at key.

func (*Adapter) ZRemRangeByScore

func (a *Adapter) ZRemRangeByScore(ctx context.Context, key string, min, max string) *redis.IntCmd

ZRemRangeByScore removes all elements in the sorted set stored at key with a score between min and max (inclusive).

Jump to

Keyboard shortcuts

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