adduc/memoize-apc

Memoize functionality backed by APC cache.

dev-master 2015-05-13 13:01 UTC

This package is auto-updated.

Last update: 2024-11-06 13:26:05 UTC


README

This library provides the ability to wrap a call to a function with caching functionality backed by Apc. It builds on the memoize-php library by Dominion Enterprises.

Example

$memoize = new Adduc\Memoize\Apc();

$compute = function() {
    // Perform some long operation that you want to memoize
};

$result = $memoize->memoizeCallable('myLongOperation', $compute);