Automattic\WooCommerce\Caching

WpCacheEngine::get_cached_object()publicWC 1.0

phpcs:disable Squiz.Commenting.FunctionComment.Missing

Метод класса: WpCacheEngine{}

No Hooks.

Return

null. Nothing.

Usage

$WpCacheEngine = new WpCacheEngine();
$WpCacheEngine->get_cached_object( $key );
$key(string) (required)
-

Code of WpCacheEngine::get_cached_object() WC 7.1.0

public function get_cached_object( string $key ) {
	$value = wp_cache_get( $key, self::CACHE_GROUP_NAME );
	return false === $value ? null : $value;
}