apc_bin_load

(PECL apc >= 3.1.4)

apc_bin_loadLoad 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(NULLNULL);
apc_bin_load($dataAPC_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