commRedisList

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 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 RedisListService

type RedisListService struct {
	MaxSize int64 // 最大数量
}

func (*RedisListService) BPop

func (e *RedisListService) BPop(key string, timeout time.Duration) (string, error)

func (*RedisListService) GetAll added in v1.0.1

func (e *RedisListService) GetAll(key string) ([]string, error)

func (*RedisListService) GetRange

func (e *RedisListService) GetRange(key string, start int64, end int64) ([]string, error)

func (*RedisListService) IsBlock

func (e *RedisListService) IsBlock(key string) (bool, error)

func (*RedisListService) IsBusy

func (e *RedisListService) IsBusy(key string, percentage int64) (bool, error)

func (*RedisListService) KBPop

func (e *RedisListService) KBPop(key string, timeout time.Duration) (string, error)

func (*RedisListService) KPush

func (e *RedisListService) KPush(key string, value string) error

func (*RedisListService) Pop

func (e *RedisListService) Pop(key string) (string, error)

func (*RedisListService) Push

func (e *RedisListService) Push(key string, value string) error

func (*RedisListService) Size

func (e *RedisListService) Size(key string) (int64, error)

type RedisValueService

type RedisValueService struct {
	Timeout int64
}

func (*RedisValueService) GetValue

func (e *RedisValueService) GetValue(mainKey string, timeout time.Duration) (string, error)

func (*RedisValueService) PHGet

func (e *RedisValueService) PHGet(prefixKey string, hashKey string, timeout time.Duration) (string, error)

func (*RedisValueService) PHSet

func (e *RedisValueService) PHSet(prefixKey string, hashKey string, value string) error

Jump to

Keyboard shortcuts

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