Purge deletes all items from the cache.
()
| 145 | |
| 146 | // Purge deletes all items from the cache. |
| 147 | func (c *NoReplKeyCache) Purge() { |
| 148 | c.lock.Lock() |
| 149 | c.cache = map[string]struct{}{} |
| 150 | c.lock.Unlock() |
| 151 | } |
| 152 | |
| 153 | // cacheType represents a specific key-only cache implementation type. |
| 154 | type cacheType int |