code: func ResolveCacheImporterFunc(sm *session.Manager, resolverOpt resolver.ResolveOptionsFunc, rs reference.Store, is imagestore.Store) remotecache.ResolveCacheImporterFunc {
  
  	upstream := registryremotecache.ResolveCacheImporterFunc(sm, resolverOpt)
  
  	return func(ctx context.Context, attrs map[string]string) (remotecache.Importer, specs.Descriptor, error) {
  		if dt, err := tryImportLocal(rs, is, attrs["ref"]); err == nil {
  			return newLocalImporter(dt), specs.Descriptor{}, nil
  		}
  		return upstream(ctx, attrs)
  	}
  }
docs: // ResolveCacheImporterFunc returns a resolver function for local inline cache