redis

package
v3.33.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubRegistry

type PubSubRegistry struct {
	Redis   *ttnredis.Client
	LockTTL time.Duration
}

PubSubRegistry is a Redis pub/sub registry.

func (PubSubRegistry) Get

Get implements pubsub.Registry.

func (*PubSubRegistry) Init added in v3.15.2

func (r *PubSubRegistry) Init(ctx context.Context) error

Init initializes the PubSubRegistry.

func (PubSubRegistry) List

List implements pubsub.Registry.

func (PubSubRegistry) Range

Range implements pubsub.Registry.

func (PubSubRegistry) Set

Set implements pubsub.Registry.

func (PubSubRegistry) WithPagination added in v3.33.0

func (PubSubRegistry) WithPagination(
	ctx context.Context,
	limit uint32,
	page uint32,
	total *int64,
) context.Context

WithPagination returns a new context with pagination parameters.

Jump to

Keyboard shortcuts

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