func NewCache(globalConfig GlobalConfig, txnManager models.TransactionManager) (*Cache, error) {
	// HTTP Client setup
	client := newClient(globalConfig)

	scrapers, err := loadScrapers(globalConfig, txnManager)
	if err != nil {
		return nil, err
	}

	return &Cache{
		client:       client,
		globalConfig: globalConfig,
		scrapers:     scrapers,
		txnManager:   txnManager,
	}, nil
}
// NewCache returns a new Cache loading scraper configurations from the
// scraper path provided in the global config object. It returns a new
// instance and an error if the scraper directory could not be loaded.
//
// Scraper configurations are loaded from yml files in the provided scrapers
// directory and any subdirectories.
NewCache returns a new Cache loading scraper configurations from the
scraper path provided in the global config object. It returns a new
instance and an error if the scraper directory could not be loaded.

Scraper configurations are loaded from yml files in the provided scrapers
directory and any subdirectories.
// NewCache returns a new Cache loading scraper configurations from the // scraper path provided in the global config object . It returns a new // instance and an error if the scraper directory could not be loaded . // // Scraper configurations are loaded from yml files in the provided scrapers // directory and any subdirectories .
func NewCache(globalConfig GlobalConfig, txnManager models.TransactionManager) (*Cache, error) {
	client := newClient(globalConfig)
	scrapers, err := loadScrapers(globalConfig, txnManager)
	if err != nil {
		return nil, err
	}
	return &Cache{
		client:       client,
		globalConfig: globalConfig,
		scrapers:     scrapers,
		txnManager:   txnManager,
	}, nil
}
func NewCache ( globalConfig GlobalConfig , txnManager models . TransactionManager ) ( * Cache , error ) { client := newClient ( globalConfig ) scrapers , err := loadScrapers ( globalConfig , txnManager ) if err != nil { return nil , err } return & Cache { client : client , globalConfig : globalConfig , scrapers : scrapers , txnManager : txnManager , } , nil }
NewCache returns a new Cache loading scraper configurations from the
scraper path provided in the global config object.
NewCache returns a new Cache loading scraper configurations from the scraper path provided in the global config object .
// HTTP Client setup