cache

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	HasBeenProcessed(ctx context.Context, k, v string) (bool, error)
}

func NewInMemoryCache

func NewInMemoryCache() Cache

func NewPersistedCache

func NewPersistedCache(ctx context.Context, ip, port string) (Cache, error)

type InMemoryCache

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

func (*InMemoryCache) HasBeenProcessed

func (c *InMemoryCache) HasBeenProcessed(ctx context.Context, k, v string) (bool, error)

type PersistedCache

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

func (*PersistedCache) HasBeenProcessed

func (c *PersistedCache) HasBeenProcessed(ctx context.Context, k, v string) (bool, error)

Jump to

Keyboard shortcuts

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