apc_bin_dumpfile

(PECL apc >= 3.1.4)

apc_bin_dumpfileOutput a binary dump of cached files and user variables to a file

说锟斤拷

apc_bin_dumpfile ( array $files , array $user_vars , string $filename [, int $flags = 0 [, resource $context = NULL ]] ) : int

Outputs a binary dump of the given files and user variables from the APC cache to the named file.

锟斤拷锟斤拷

files

The file names being dumped.

user_vars

The user variables being dumped.

filename

The filename where the dump is being saved.

flags

Flags passed to the filename stream. See the file_put_contents() documentation for details.

context

The context passed to the filename stream. See the file_put_contents() documentation for details.

锟斤拷锟斤拷值

The number of bytes written to the file, otherwise FALSE if APC is not enabled, filename is an invalid file name, filename can't be opened, the file dump can't be completed (e.g., the hard drive is out of disk space), or an unknown error was encountered.

锟轿硷拷

  • apc_bin_dump() - 锟斤拷取锟斤拷锟斤拷锟侥硷拷锟酵憋拷锟斤拷锟侥讹拷锟斤拷锟斤拷锟侥硷拷转锟斤拷锟斤拷
  • apc_bin_load() - Load a binary dump into the APC file/user cache