Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 439 Bytes

File metadata and controls

30 lines (18 loc) · 439 Bytes

SafeApc - PHP APC Cache Safe Using Wrapper

Usage

use SafeApc;

// initialize
$apc = new SafeApc();
$apc->setCacheStartTime($_SERVER['REQUEST_TIME']);
$apc->setCacheVersionKey(file_get_contents('apc_version'));


// set key
$apc->set('cache key', $value, 100);

// get key (throws SafeApcNotFoundException)
$apc->get('cache key');

// delete key
$apc->delete('cache key');

clear all cache

change version key