CacheTool\Proxy\ApcProxy::apc_bin_loadfile PHP Method

apc_bin_loadfile() public method

Load a binary dump from a file into the APC file/user cache
Since: 3.1.4
public apc_bin_loadfile ( string $filename, resource $context = null, integer $flags ) : boolean
$filename string The file name containing the dump, likely from apc_bin_dumpfile().
$context resource The files context.
$flags integer Either APC_BIN_VERIFY_CRC32, APC_BIN_VERIFY_MD5, or both.
return boolean Returns TRUE on success, otherwise FALSE Reasons it may return FALSE include APC is not enabled, filename is an invalid file name or empty, filename can't be opened, the file dump can't be completed, or if the data is not a valid APC binary dump (e.g., unexpected size).
    public function apc_bin_loadfile($filename, $context = null, $flags = 0)
    {
        $code = new Code();
        $code->addStatement(sprintf('return apc_bin_loadfile(%s, %s, %s);', var_export($filename, true), var_export($context, true), var_export($flags, true)));
        return $this->adapter->run($code);
    }