PHP Class StackFormation\Helper\Cache
Quick'n'dirty cache with convenience method
Example:
$cache->get('message', function() { return 'Hello World'; });
Will return the message from cache if present and will generate it
by executing the callback and store it in the cache before returning the value.
Mostrar archivo
Open project: aoepeople/stackformation
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$cache |
|
|
|
Public Methods
Method Details
public set ( $key, $value ) |
$key |
|
|
$value |
|
|
Property Details
$cache protected_oe property