Automattic\WooCommerce\Vendor\Pelago\Emogrifier\Caching
SimpleStringCache::set
Sets or overwrites an entry.
Method of the class: SimpleStringCache{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SimpleStringCache = new SimpleStringCache(); $SimpleStringCache->set( $key, $value ): void;
- $key(string) (required)
- the key to of the item to set; must not be empty.
- $value(string) (required)
- the value to set; can be empty.
SimpleStringCache::set() SimpleStringCache::set code WC 10.8.1
public function set(string $key, string $value): void
{
$this->assertNotEmptyKey($key);
$this->values[$key] = $value;
}