Unexport lru.Cache.Clear

This commit is contained in:
Cody Soyland 2018-07-05 22:00:55 -05:00
parent 536f6cff8a
commit a22d83b880

View file

@ -120,8 +120,8 @@ func (c *Cache) Len() int {
return c.ll.Len()
}
// Clear purges all stored items from the cache.
func (c *Cache) Clear() {
// clear purges all stored items from the cache.
func (c *Cache) clear() {
if c.OnEvicted != nil {
for _, e := range c.cache {
kv := e.Value.(*entry)