Automattic\WooCommerce\Caching
CacheEngine::is_cached()
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, $group ): bool;
- $key(string) (required)
- The key to verify.
- $group(string)
- The group under which the object is cached.
Default: ''
CacheEngine::is_cached() CacheEngine::is cached code WC 9.4.2
public function is_cached( string $key, string $group = '' ): bool;