CacheEngine::is_cached()publicWC 1.0

Checks if an object is cached under a given key.

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

Хуков нет.


true|false. True if there's an object cached under the given key, false otherwise.


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

Код CacheEngine::is_cached() WC 7.7.0

public function is_cached( string $key, string $group = '' ): bool;