func (fc *FCache) Evict(opts ...LookupOption) error {
	// Lock the cache
	fc.Lock()
	defer fc.Unlock()

	// Process the options
	o, err := procLookupOpts(opts)
	if err != nil {
		return err
	}

	// Look for the index
	idx, ok := fc.indexes[o.key.Index]
	if !ok {
		return ErrBadIndex
	}

	// Check to see if there's an entry
	ent, ok := idx.entries[o.key.Key]
	if !ok || ent.content == nil {
		// Not present, do nothing
		return nil
	}

	// Evict the entry
	fc.evict(ent.content.Keys)

	return nil
}
// Evict removes a specific entry in the cache.  The options specify
// which entry to evict.
Evict removes a specific entry in the cache.  The options specify
which entry to evict.
// Evict removes a specific entry in the cache . The options specify // which entry to evict .
func (fc *FCache) Evict(opts ...LookupOption) error {
	fc.Lock()
	defer fc.Unlock()
	o, err := procLookupOpts(opts)
	if err != nil {
		return err
	}
	idx, ok := fc.indexes[o.key.Index]
	if !ok {
		return ErrBadIndex
	}
	ent, ok := idx.entries[o.key.Key]
	if !ok || ent.content == nil {
		return nil
	}
	fc.evict(ent.content.Keys)
	return nil
}
func ( fc * FCache ) Evict ( opts ... LookupOption ) error { fc . Lock ( ) defer fc . Unlock ( ) o , err := procLookupOpts ( opts ) if err != nil { return err } idx , ok := fc . indexes [ o . key . Index ] if ! ok { return ErrBadIndex } ent , ok := idx . entries [ o . key . Key ] if ! ok || ent . content == nil { return nil } fc . evict ( ent . content . Keys ) return nil }
Evict removes a specific entry in the cache.
Evict removes a specific entry in the cache .
// Lock the cache // Process the options // Look for the index // Check to see if there's an entry // Not present, do nothing // Evict the entry