apc_bin_loadfile()
(PECL apc >= 3.1.4)
Load a binary dump from a file into the APC file/user cache
说明
apc_bin_loadfile(string $filename[,resource $context= NULL[,int $flags= 0]]): bool
Loads a binary dump from a file into the APC file/user cache.
参数
- $filename
The file name containing the dump, likely from apc_bin_dumpfile().
- $context
The files context.
- $flags
Either
APC_BIN_VERIFY_CRC32
,APC_BIN_VERIFY_MD5
, or both.
返回值
Returns TRUE
on success, otherwise FALSE
Reasons it may return FALSE
include APC is not enabled,$filenameis an invalid file name or empty,$filenamecan't be opened, the file dump can't be completed, or if the$datais not a valid APC binary dump(e.g., unexpected size).
参见
apc_bin_dumpfile()
Output a binary dump of cached files and user variables to a fileapc_bin_load()
Load a binary dump into the APC file/user cache