cache

package
v0.0.0-...-2649cbc Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHash

func NewHash(cli *redis.Client, prefix string, ex time.Duration) *hash

func NewList

func NewList(cli *redis.Client, prefix string, ex time.Duration) *list

func NewZset

func NewZset(cli *redis.Client, prefix string, ex time.Duration) *zset

Types

type Pager

type Pager interface {
	Del(ctx context.Context, key string) (n int64, err error)
	Set(ctx context.Context, key string, rows []interface{}, offset uint64) (err error)
	Get(ctx context.Context, key string, offset, limit uint64) (bytesArray [][]byte, err error)
}

Jump to

Keyboard shortcuts

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