redis

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	Enabled  bool   `config:"enabled"`
	Host     string `config:"host"`
	Port     int    `config:"port"`
	Username string `config:"username"`
	Password string `config:"password"`
	PoolSize int    `config:"pool_size"`
	Db       int    `config:"db"`
}

type RedisModule

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

func (*RedisModule) Name

func (module *RedisModule) Name() string

func (*RedisModule) Setup

func (module *RedisModule) Setup()

func (*RedisModule) Start

func (module *RedisModule) Start() error

func (*RedisModule) Stop

func (module *RedisModule) Stop() error

type RedisQueue

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

func (*RedisQueue) Close

func (module *RedisQueue) Close(k string) error

func (*RedisQueue) Consume

func (module *RedisQueue) Consume(q *queue.QueueConfig, consumer *queue.ConsumerConfig, offsetStr string) (ctx *queue.Context, messages []queue.Message, timeout bool, err error)

func (*RedisQueue) Depth

func (module *RedisQueue) Depth(k string) int64

func (*RedisQueue) GetQueues

func (module *RedisQueue) GetQueues() []string

func (*RedisQueue) Init

func (module *RedisQueue) Init(k string) error

func (*RedisQueue) LatestOffset

func (module *RedisQueue) LatestOffset(string) string

func (*RedisQueue) Name

func (module *RedisQueue) Name() string

func (*RedisQueue) Pop

func (module *RedisQueue) Pop(k string, timeoutDuration time.Duration) (data []byte, timeout bool)

func (*RedisQueue) Push

func (module *RedisQueue) Push(k string, v []byte) error

Jump to

Keyboard shortcuts

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