Automattic\WooCommerce\Caching

CacheEngine::get_cached_object │ public │ WC 1.0

Retrieves an object cached under a given key.

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

Хуков нет.

Возвращает

array|object|null. The cached object, or null if there's no object cached under the passed key.

Использование

$CacheEngine = new CacheEngine();
$CacheEngine->get_cached_object( $key, $group );
$key(строка) (обязательный)
They key under which the object to retrieve is cached.
$group(строка)
The group under which the object is cached.
По умолчанию: ''

Код CacheEngine::get_cached_object() WC 11.2.2

public function get_cached_object( string $key, string $group = '' );