code: func (c *Cache) clear() { // nolint: staticcheck,unused
  	if c.OnEvicted != nil {
  		for _, e := range c.cache {
  			kv := e.Value.(*entry)
  			c.OnEvicted(kv.key, kv.value)
  		}
  	}
  	c.ll = nil
  	c.cache = nil
  }
docs: // clear purges all stored items from the cache.