$data
$data : array
call(string $key, callable $func) : mixed
Convience method to retrieve a value if it's cached, or run the callback and cache the data now if not.
The key parameter is optional, just a callback can be passed. If so the calling class/method will be used as the cache key.
string | $key | The key of the cached data |
callable | $func | A function to call that will return the value to cache |