* @return bool|array|null */ public static function GetArray($key, $allowNull = false) { return static::GetType('array', $key, $allowNull); } /** * This one can either return a boolean when key is found, or a null if key isn't found. So you need to check the * result with with is_bool() or is_null(). * @param string $key The key to lookup * @return bool|null */ public static function GetBoolean($key) { return static::GetType('bool', $key, false, null); } private static function GetType($type, $key, $allowNull, $notFoundResult = false) { $r = static::Get($key); if ($r) { $uco = unserialize($r); $typeFunc = 'is_'.$type; if ($typeFunc($uco) || ($allowNull && is_null($uco))) { return $uco; } } return $notFoundResult; } public static function Get($key) { if (array_key_exists($key, static::$requestCache)) { $r = static::$requestCache[$key]; $r = static::afterGet($r); App::cacheHit($key); return $r; } if ($i = static::getInstance()) { if ($r = $i->get($key)) { //if a key has been used more than 3 times, store it in the in-memory request cache. //We don't store every cache load in-memory, otherwise we might run out of memory on some pages (eg if they load every account)
"Out of memory (allocated 11538432) (tried to allocate 20480 bytes)"
Key | Value |
aid | "restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
Key | Value |
PHPSESSID | "qmhvb49v63llsi5ofluslrsn2v"
|
Key | Value |
loc | "en_US"
|
customer_account_id | 64058
|
cart | Cart {}
|
restaurant_id | 12065
|
redirect_form | "checkout"
|
app_banner_shown | true
|
status | array:2 [ 1 => [] 2 => [] ] |
eot | 1755916333
|
menu_id | 15182
|
Key | Value |
UNIQUE_ID | "aKj4I9qFqKMxMz7Nooo6GQAAABU"
|
SCRIPT_URL | "/restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
SCRIPT_URI | "http://www.springroll.com.9.simon.ehungry.net/restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
HTTP_HOST | "www.springroll.com.9.simon.ehungry.net"
|
HTTP_X_REAL_IP | "216.73.216.45"
|
HTTP_X_FORWARDED_FOR | "216.73.216.45"
|
HTTP_X_CONFKEY | "Main_Domain:6462"
|
HTTP_SCHEME | "https"
|
HTTP_EHENV | "TODO"
|
HTTP_CONNECTION | "close"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
HTTP_COOKIE | "PHPSESSID=qmhvb49v63llsi5ofluslrsn2v"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache/2.4.62 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
SERVER_NAME | "www.springroll.com.9.simon.ehungry.net"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_PORT | "80"
|
REMOTE_ADDR | "127.0.0.1"
|
DOCUMENT_ROOT | "/home/deploy/EHungry-9-simon/Web"
|
REQUEST_SCHEME | "http"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-9-simon/Web"
|
SERVER_ADMIN | "root@localhost"
|
SCRIPT_FILENAME | "/home/deploy/EHungry-9-simon/Web/index.php"
|
REMOTE_PORT | "58112"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "aid=restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
REQUEST_URI | "/restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
SCRIPT_NAME | "/restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
PHP_SELF | "/restaurant/pekingtokyolanghorne/order/main/chinese-appetizers/5-fried-pork-dumpling-6"
|
REQUEST_TIME_FLOAT | 1755904035.181
|
REQUEST_TIME | 1755904035
|