PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Описание методов
public set ( $key, $value ) |
$key |
|
|
$value |
|
|
Описание свойств
$cache защищенное свойство