adduc / memoize-apc
Memoize functionality backed by APC cache.
dev-master
2015-05-13 13:01 UTC
Requires
- ext-apc: *
- dominionenterprises/memoize: ~0.1
This package is auto-updated.
Last update: 2024-12-06 13:44:11 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);