Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 782 Bytes

apcu.md

File metadata and controls

25 lines (17 loc) · 782 Bytes

Apcu

Use APCu cache to cache to shared memory.

use Desarrolla2\Cache\Apcu as ApcuCache;

$cache = new ApcuCache();

Note: by default APCu uses the time at the beginning of a request for ttl. In some cases, like with a long running script, this can be a problem. You can change this behaviour ini_set('apc.use_request_time', false).

Options

name type default
ttl int null Maximum time to live in seconds
prefix string "" Key prefix

Packer

By default the NopPacker is used.