PHP code example of yungsters / hh-apc
1. Go to this page and download the library: Download yungsters/hh-apc library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yungsters / hh-apc example snippets
<?hh
$key = 'foo';
list($success, $value) = APC::get($key);
if (!$success) {
invariant(
APC::set($key, 'bar'),
'Failed to set `%s` in APC.',
$key,
);
list($success, $value) = APC::get('foo');
}
APC::delete('foo');