yungsters/hh-apc

Simple APC utility class for use with Hack.

1.0.0 2014-05-09 00:02 UTC

README

Simple APC utility class for use with Hack.

Usage

<?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');