PHPackages                             crodas/memorandum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crodas/memorandum

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crodas/memorandum
=================

A magic memoization function on steroids

v0.2.1(6y ago)09PHPPHP &gt;=7.0

Since Dec 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/crodas/Memorandum)[ Packagist](https://packagist.org/packages/crodas/memorandum)[ RSS](/packages/crodas-memorandum/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Memorandum
==========

[](#memorandum)

A magic [memoization](https://en.wikipedia.org/wiki/Memoization) function on steroids.

Motivation
----------

[](#motivation)

[Memoization](https://en.wikipedia.org/wiki/Memoization) stores the results of expensive function calls and returns the cached result when the same inputs occur again.

This library stores the result of a function. If any of the function's argument are files or folders, the result will be deemed as valid until any of those files or folders are either modified or removed.

Any function which involves I/O is destined to be slow, that's why Memorandum speeds up things by processing things only when necessary.

Usage
-----

[](#usage)

```
