func (c *Cache) DeleteEndpoints(endpointsNN types.NamespacedName) {
	c.lock.Lock()
	defer c.lock.Unlock()

	if spCache, ok := c.cache[endpointsNN]; ok {
		c.numEndpoints = c.numEndpoints - spCache.numEndpoints()
		delete(c.cache, endpointsNN)
		c.updateMetrics()
	}
}
// DeleteEndpoints removes references to an Endpoints resource from the global
// cache and updates the corresponding metrics.
DeleteEndpoints removes references to an Endpoints resource from the global
cache and updates the corresponding metrics.
// DeleteEndpoints removes references to an Endpoints resource from the global // cache and updates the corresponding metrics .
func (c *Cache) DeleteEndpoints(endpointsNN types.NamespacedName) {
	c.lock.Lock()
	defer c.lock.Unlock()
	if spCache, ok := c.cache[endpointsNN]; ok {
		c.numEndpoints = c.numEndpoints - spCache.numEndpoints()
		delete(c.cache, endpointsNN)
		c.updateMetrics()
	}
}
func ( c * Cache ) DeleteEndpoints ( endpointsNN types . NamespacedName ) { c . lock . Lock ( ) defer c . lock . Unlock ( ) if spCache , ok := c . cache [ endpointsNN ] ; ok { c . numEndpoints = c . numEndpoints - spCache . numEndpoints ( ) delete ( c . cache , endpointsNN ) c . updateMetrics ( ) } }
DeleteEndpoints removes references to an Endpoints resource from the global
cache and updates the corresponding metrics.
DeleteEndpoints removes references to an Endpoints resource from the global cache and updates the corresponding metrics .