$cache→getRaw()
Get raw cache data by name
Returns array with the following:
Optional: To get from a namespace (ns), prefix namespace to $name like ns__$name.
Available since version 3.0.268.
Example
[
'name' => 'name-of-cache',
'expires' => 'ISO 8601 DATETIME',
'data' => 'Raw cache data, whether JSON or string'
]Usage
$array = $cache->getRaw(string $name);Arguments
| Name | Type(s) | Description |
|---|---|---|
$name | string | Cache name |
Return value
array nullReturns array of raw cache row if found, null if not found
See Also
API reference based on ProcessWire core version 3.0.268