func (fc *FCache) Lookup(opts ...LookupOption) (interface{}, error) {
	// Process the options
	o, err := procLookupOpts(opts)
	if err != nil {
		return nil, err
	}

	// Perform the lookup
	f, err := fc.lookup(o)
	if err != nil {
		return nil, err
	}

	// Wait on the future
	defer f.Cancel()
	return f.WaitWithContext(o.ctx)
}
// Lookup looks up an entry in the cache and returns it.  The options
// specify which entry to look up.  If necessary, the index factory
// function will be invoked to construct the entry.  This method waits
// for the object to be constructed, unless the SearchCache option is
// provided; use LookupFuture to instead return a Future.
Lookup looks up an entry in the cache and returns it.  The options
specify which entry to look up.  If necessary, the index factory
function will be invoked to construct the entry.  This method waits
for the object to be constructed, unless the SearchCache option is
provided; use LookupFuture to instead return a Future.
// Lookup looks up an entry in the cache and returns it . The options // specify which entry to look up . If necessary the index factory // function will be invoked to construct the entry . This method waits // for the object to be constructed unless the SearchCache option is // provided ; use LookupFuture to instead return a Future .
func (fc *FCache) Lookup(opts ...LookupOption) (interface{}, error) {
	o, err := procLookupOpts(opts)
	if err != nil {
		return nil, err
	}
	f, err := fc.lookup(o)
	if err != nil {
		return nil, err
	}
	defer f.Cancel()
	return f.WaitWithContext(o.ctx)
}
func ( fc * FCache ) Lookup ( opts ... LookupOption ) ( interface { } , error ) { o , err := procLookupOpts ( opts ) if err != nil { return nil , err } f , err := fc . lookup ( o ) if err != nil { return nil , err } defer f . Cancel ( ) return f . WaitWithContext ( o . ctx ) }
Lookup looks up an entry in the cache and returns it.
Lookup looks up an entry in the cache and returns it .
// Process the options // Perform the lookup // Wait on the future