Automattic\WooCommerce\Caching

ObjectCache::get_cache_engine_instance()protectedWC 1.0

Get the instance of the cache engine to use.

Method of the class: ObjectCache{}

No Hooks.

Return

CacheEngine.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_cache_engine_instance(): CacheEngine;

ObjectCache::get_cache_engine_instance() code WC 9.4.2

protected function get_cache_engine_instance(): CacheEngine {
	return wc_get_container()->get( WPCacheEngine::class );
}