$cachegetRaw()

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

NameType(s)Description
$namestring

Cache name

Return value

array null

Returns array of raw cache row if found, null if not found

See Also


$cache methods and properties

API reference based on ProcessWire core version 3.0.268