Skip to content

Instantly share code, notes, and snippets.

@preinheimer
Created February 6, 2012 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preinheimer/1752636 to your computer and use it in GitHub Desktop.
Save preinheimer/1752636 to your computer and use it in GitHub Desktop.
APC Command Line Test
<?php
if (apc_exists('count_key'))
{
$val = apc_inc('count_key');
}else
{
apc_store('count_key', 0);
$val = 0;
}
echo $val;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment