type uidCache … // newUIDCache returns a uidCache. func newUIDCache(maxCacheEntries int) *uidCache { … } // Add adds a uid to the cache. func (c *uidCache) Add(uid types.UID) { … } // Has returns if a uid is in the cache. func (c *uidCache) Has(uid types.UID) bool { … }