Provides a simple, straightforward cache-logic mechanism. Useful for non-complex response caches.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the function to fire when we need to fetch new data to cache. |
|
|
Optional |
Parameters to pass into the callback function, as an array. |
Returns
Type |
Description |
---|---|
The cached data being requested. |
Source
Method defined in lib/cachecore/cachecore.class.php | Toggle source view (30 lines) | View on GitHub