cache

package
v0.0.0-...-ab12051 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitteesCache

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

CommitteesCache is used to store the cached results of committees for epoch.

func NewCommitteesCache

func NewCommitteesCache() *CommitteesCache

NewCommitteesCache initializes the map and underlying cache.

func (*CommitteesCache) Get

Get returns the cached response.

func (*CommitteesCache) Put

func (c *CommitteesCache) Put(ctx context.Context, epoch uint64, committees *ethpb.BeaconCommittees) error

Put the response in the cache.

Jump to

Keyboard shortcuts

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