WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API\Reports

DataStore::get_cached_data() protected WC 1.0

{} It's a method of the class: DataStore{}

No Hooks.

Return

Mixed.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_cached_data( $cache_key );
$cache_key(string) (required)
Cache key.

Code of DataStore::get_cached_data() WC 6.1.0

protected function get_cached_data( $cache_key ) {
	if ( $this->should_use_cache() ) {
		return Cache::get( $cache_key );
	}

	return false;
}