code: func (c *ExpirationCache) Replace(list []interface{}, resourceVersion string) error {
  	items := make(map[string]interface{}, len(list))
  	ts := c.clock.Now()
  	for _, item := range list {
  		key, err := c.keyFunc(item)
  		if err != nil {
  			return KeyError{item, err}
  		}
  		items[key] = &TimestampedEntry{item, ts}
  	}
  	c.expirationLock.Lock()
  	defer c.expirationLock.Unlock()
  	c.cacheStorage.Replace(items, resourceVersion)
  	return nil
  }
docs: // Replace will convert all items in the given list to TimestampedEntries
  // before attempting the replace operation. The replace operation will
  // delete the contents of the ExpirationCache `c`.