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 ¶
func (c *CommitteesCache) Get(ctx context.Context, epoch uint64) (*ethpb.BeaconCommittees, error)
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.
Click to show internal directories.
Click to hide internal directories.