DatabaseBackend::prepareItem
protected function DatabaseBackend::prepareItem
protected DatabaseBackend::prepareItem($cache, $allow_invalid)
Prepares a cached item.
Checks that items are either permanent or did not expire, and unserializes data as appropriate.
Parameters
object $cache: An item loaded from cache_get() or cache_get_multiple().
bool $allow_invalid: If FALSE, the method returns FALSE if the cache item is not valid.
Return value
mixed|false The item with data unserialized as appropriate and a property indicating whether the item is valid, or FALSE if there is no valid item to load.
File
- core/lib/Drupal/Core/Cache/登录查看完整内容