Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Caching

SimpleStringCache::haspublicWC 1.0

Checks whether there is an entry stored for the given key.

Method of the class: SimpleStringCache{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SimpleStringCache = new SimpleStringCache();
$SimpleStringCache->has( $key ): bool;
$key(string) (required)
the key to check; must not be empty.

SimpleStringCache::has() code WC 10.7.0

public function has(string $key): bool
{
    $this->assertNotEmptyKey($key);

    return isset($this->values[$key]);
}