Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests
.gitignore
README.md

README.md

PHP Memoize Trait

Usage

Prefix any method name with an underscore (_) to memoize calls to that method.

$instance = new Object();
$instance->method();  // normal
$instance->_method(); // memoized

Note: Requires special consideration when your class (or a super class) already implements the magic __call method.

Test

% phpunit tests/MemoizeTest.php 
You can’t perform that action at this time.