- PHP 手册
- 函数参考
- 影响 PHP 行为的扩展
- APC
- APC 函数
apc_bin_load
(PECL apc >= 3.1.4)
apc_bin_load — Load a binary dump into the APC file/user cache
说明
apc_bin_load ( string$data
[, int $flags
= 0
] ) : bool
Loads the given binary dump into the APC file/user cache.
参数
-
data
-
The binary dump being loaded, likely from apc_bin_dump().
-
flags
-
Either
APC_BIN_VERIFY_CRC32
,APC_BIN_VERIFY_MD5
, or both.
返回值
Returns TRUE
if the binary dump data
was loaded
with success, otherwise FALSE
is returned. FALSE
is returned if APC
is not enabled, or if the data
is not a valid APC
binary dump (e.g., unexpected size).
范例
Example #1 apc_bin_load() example
<?php
$data = apc_bin_dump(NULL, NULL);
apc_bin_load($data, APC_BIN_VERIFY_MD5 | APC_BIN_VERIFY_CRC32);
?>
参见
- apc_bin_dump() - 获取给定文件和变量的二进制文件转储。
- apc_bin_loadfile() - Load a binary dump from a file into the APC file/user cache
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/function.apc-bin-load.php