Download the PHP package antevenio/memoize without Composer
On this page you can find all versions of the php package antevenio/memoize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download antevenio/memoize
More information about antevenio/memoize
Files in antevenio/memoize
Download antevenio/memoize
More information about antevenio/memoize
Files in antevenio/memoize
Vendor antevenio
Package memoize
Short Description In memory function memoizing, can be capped by total memory consumption and per function ttl.
License MIT
Package memoize
Short Description In memory function memoizing, can be capped by total memory consumption and per function ttl.
License MIT
Please rate this library. Is it a good library?
Informations about the package memoize
antevenio/memoize
Yet another in memory function memoizing library.
Features
- Can specify a maximum number of items for the cache to hold.
- Can place a TTL (time to live) per callable. (meaning that memoize will be returning the callable cached results until the TTL expires, in which case it will call the function again and generate a new cached result)
- Can override the default callable argument cache indexing with a custom one. (you can reuse a cached callable even passing different arguments if you want to do so)
- Caches thrown exceptions.
Behaviour
- When reaching the maximum number of items in cache, it will evict the oldest (first cached) callable first.
Requirements
The following versions of PHP are supported.
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
Installation
Usage
Common code
Basic
->>>
Changing arguments
->>>
Custom indexing
->>>
Exceptions
->>>
All versions of memoize with dependencies
PHP Build Version
Package Version
The package antevenio/memoize contains the following files
Loading the files please wait ....