UbillingCache::getCallback
Returns data from cache by key or runs callback and fills new cache data
Signature
public function getCallback(string
$key,
Closure
$callback,
[integer
$expiration = 2592000] )
Parameters
$key
— string- Storage key
$callback
— Closure- Callback function
$expiration
— integer- Expiration time in seconds
Returns
- string