cache

package
v0.0.172 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// best to keep this > 1 epoch as some clients may send the same attestation on new epoch
	TTL = 7 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateCache

type DuplicateCache struct {
	Attestation *ttlcache.Cache[string, int]
}

func NewDuplicateCache

func NewDuplicateCache() *DuplicateCache

func (*DuplicateCache) Start

func (d *DuplicateCache) Start()

Jump to

Keyboard shortcuts

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