redis

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker provides inmemory messages test

func New

func New(client redis.Cmdable, lifetime time.Duration) *Checker

New checker wraps bigcache

func NewByHost

func NewByHost(host string, lifetime time.Duration) *Checker

NewByHost checker

func (*Checker) IsSkip

func (ch *Checker) IsSkip(ctx context.Context, msg any) bool

IsSkip message if was sent

func (*Checker) MarkAsSent

func (ch *Checker) MarkAsSent(ctx context.Context, msg any) error

MarkAsSent message to the publisher

Jump to

Keyboard shortcuts

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