Automattic\WooCommerce\Caching

CacheException::get_cached_id()publicWC 1.0

Gets the id of the cached object as passed to the exception constructor.

Method of the class: CacheException{}

No Hooks.

Return

Int|String|null. The id of the cached object.

Usage

$CacheException = new CacheException();
$CacheException->get_cached_id();

CacheException::get_cached_id() code WC 8.7.0

public function get_cached_id() {
	return $this->cached_id;
}