type ReferenceCache … // NewReferenceCache returns a ReferenceCache. func NewReferenceCache(maxCacheEntries int) *ReferenceCache { … } // Add adds a uid to the cache. func (c *ReferenceCache) Add(reference objectReference) { … } // Has returns if a uid is in the cache. func (c *ReferenceCache) Has(reference objectReference) bool { … }