Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier\Caching
SimpleStringCache::set
Sets or overwrites an entry.
Метод класса: SimpleStringCache{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$SimpleStringCache = new SimpleStringCache(); $SimpleStringCache->set( $key, $value ): void;
- $key(строка) (обязательный)
- the key to of the item to set; must not be empty.
- $value(строка) (обязательный)
- the value to set; can be empty.
Код SimpleStringCache::set() SimpleStringCache::set WC 11.3.0
public function set(string $key, string $value): void
{
$this->assertNotEmptyKey($key);
$this->values[$key] = $value;
}