WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

DataStore::set_cached_data() protected WC 1.0

Wrapper around Cache::set().

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

No Hooks.

Return

true|false. Nothing.

Usage

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

Code of DataStore::set_cached_data() WC 5.3.0

<?php
protected function set_cached_data( $cache_key, $value ) {
	if ( $this->should_use_cache() ) {
		return Cache::set( $cache_key, $value );
	}

	return true;
}