nazo/safeapc

APC Cache Safe Using Wrapper

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/nazo/safeapc

0.3 2022-03-09 06:32 UTC

This package is not auto-updated.

Last update: 2025-10-02 00:03:15 UTC


README

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