MarkupCache::get()
Get cached data identified by 'uniqueName' or false if cache not available
Usage
// basic usage
$string = $markupCache->get(string $uniqueName);
// usage with all arguments
$string = $markupCache->get(string $uniqueName, int $seconds = 3600);
Arguments
Name | Type(s) | Description |
---|---|---|
$uniqueName | string | A unique string or number to identify this cache, i.e. 'citiesList' |
$seconds (optional) | int | The number of seconds the cache should live. |
Return value
string
bool
Returns the cache data, or FALSE if it has expired and needs to be re-created.
Exceptions
Method can throw exceptions on error:
WireException
MarkupCache methods and properties
API reference based on ProcessWire core version 3.0.251