Example #1
0
 public function dump($files = null, $vars = null)
 {
     if (CACHE_STATUS) {
         apc_bin_dump($files, $vars);
     }
     return false;
 }
Example #2
0
 public function dump($files = NULL, $vars = NULL)
 {
     if (_cacheStatus) {
         apc_bin_dump($files, $vars);
     }
     return FALSE;
 }
Example #3
0
error_reporting(E_ALL);
ini_set("display_errors", 1);
echo "<pre>";
$is_apc_installed = extension_loaded('apc');
echo "[{$is_apc_installed}]" . PHP_EOL;
// Example #1 A apc_add() example
$bar = 'BAR';
apc_add('foo', $bar);
print_r(apc_fetch('foo'));
//apc_delete('foo');
echo "\n";
$bar = 'NEVER GETS SET NEW ';
apc_add('foonew', $bar);
print_r(apc_fetch('foonew'));
apc_delete('foo');
echo "\n";
apc_cas('foo', 1, 2);
print_r(apc_fetch('foo'));
print_r(apc_cache_info());
print_r(apc_bin_dump());
apc_bin_dumpfile(array(), array('foo', 'foonew'), "aa.txt");
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "<br/>";
Example #4
0
 /**
  * Returns a binary dump of the given files and user variables from the APC cache
  *
  * A NULL for files or user_vars signals a dump of every entry, while array() will dump nothing.
  *
  * @link http://php.net/manual/en/function.apc-bin-dump.php
  *
  * @param string[]|null $files
  *            The files. Passing in NULL signals a dump of every entry, while passing in array() will dump nothing.
  * @param string[]|null $user_vars
  *            The user vars. Passing in NULL signals a dump of every entry, while passing in array() will dump nothing.
  *
  * @return string bool null binary dump of the given files and user variables from the APC cache, false if APC is not enabled, or NULL if an unknown error is encountered.
  */
 public function bin_dump($files = null, $user_vars = null)
 {
     return apc_bin_dump($files, $user_vars);
 }