Versions in this module Expand all Collapse all v0 v0.24.1 Jan 26, 2022 Changes in this version type Cache + func (c Cache) Entities() []flow.Entity + func (c Cache) Identifiers() flow.IdentifierList v0.24.0 Jan 19, 2022 Changes in this version + type Cache struct + func NewCache(sizeLimit uint32, oversizeFactor uint32, ejectionMode heropool.EjectionMode, ...) *Cache + func (c *Cache) Add(entityID flow.Identifier, entity flow.Entity) bool + func (c *Cache) Adjust(entityID flow.Identifier, f func(flow.Entity) flow.Entity) (flow.Entity, bool) + func (c *Cache) ByID(entityID flow.Identifier) (flow.Entity, bool) + func (c *Cache) Clear() + func (c *Cache) Has(entityID flow.Identifier) bool + func (c *Cache) Hash() flow.Identifier + func (c *Cache) Rem(entityID flow.Identifier) (flow.Entity, bool) + func (c Cache) All() map[flow.Identifier]flow.Entity + func (c Cache) Size() uint