Automattic\WooCommerce\Caching

CacheEngine::is_cached()publicWC 1.0

Checks if an object is cached under a given key.

Method of the class: CacheEngine{}

No Hooks.

Return

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

Usage

$CacheEngine = new CacheEngine();
$CacheEngine->is_cached( $key ): bool;
$key(string) (required)
The key to verify.

CacheEngine::is_cached() code WC 7.1.1

public function is_cached( string $key): bool;