redis

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 3 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(msg interface{}) bool

IsSkip message if was sent

func (*Checker) MarkAsSent

func (ch *Checker) MarkAsSent(msg interface{}) error

MarkAsSent message to the publisher

Jump to

Keyboard shortcuts

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