namespace App;
use Kalibora\Memoization\MemoizationTrait;
class HeavyProcessor
{
use MemoizationTrait;
public function process(): void
{
return $this->getMemoization()->memoize(__FUNCTION__, function () {
// Very heavy processing takes place here.
return $value;
});
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
kalibora/memoization
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|