code: func (c *LRU) Resize(n int) {
  	c.mu.Lock()
  	if n < len(c.table) {
  		c.drop(len(c.table) - n)
  	}
  	c.cap = n
  	c.mu.Unlock()
  }
docs: // Resize changes the capacity of the cache to n, dropping excess blocks
  // if n is less than the number of cached blocks.