redis

package
v0.0.0-...-bf0d46e Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hashes

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

func (Hashes) Len

func (h Hashes) Len(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*Hashes) Truncate

func (k *Hashes) Truncate(ctx context.Context, c *client.Redis, key string) (int64, error)

func (Hashes) Type

func (h Hashes) Type() KeyType

type KeyType

type KeyType string
const KeyTypeHash KeyType = "hashes"
const KeyTypeList KeyType = "lists"
const KeyTypeSet KeyType = "sets"
const KeyTypeSortedSets KeyType = "sortedSets"

type Keyer

type Keyer interface {
	Type() KeyType
	Len(ctx context.Context, c *client.Redis, key string) (int64, error)
	Truncate(ctx context.Context, c *client.Redis, key string) (int64, error)
}

type Lists

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

func (*Lists) Len

func (l *Lists) Len(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*Lists) Truncate

func (k *Lists) Truncate(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*Lists) Type

func (l *Lists) Type() KeyType

type Rediser

type Rediser interface {
	GetClient() *client.Redis
}

type Sets

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

func (*Sets) Len

func (l *Sets) Len(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*Sets) Truncate

func (k *Sets) Truncate(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*Sets) Type

func (l *Sets) Type() KeyType

type SortedSets

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

func (*SortedSets) Len

func (l *SortedSets) Len(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*SortedSets) Truncate

func (k *SortedSets) Truncate(ctx context.Context, c *client.Redis, key string) (int64, error)

func (*SortedSets) Type

func (l *SortedSets) Type() KeyType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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