CacheEngine::get_cached_object()publicWC 1.0

Retrieves an object cached under a given key.

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

Хуков нет.


Массив|Объект|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.
The group under which the object is cached.
По умолчанию: ''

Код CacheEngine::get_cached_object() WC 8.6.1

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