protected function getRecordCached($itemType, $itemUid, $additionalRecordFields)
    {
        $cache = GeneralUtility::makeInstance(TwoLevelCache::class, /** @scrutinizer ignore-type */ 'cache_runtime');
        $cacheId = md5('Queue' . ':' . 'getRecordCached' . ':' . $itemType . ':' . $itemUid . ':' . 'pid' . $additionalRecordFields);

        $record = $cache->get($cacheId);
        if (empty($record)) {
            $record = BackendUtility::getRecord($itemType, $itemUid, 'pid' . $additionalRecordFields);
            $cache->set($cacheId, $record);
        }

        return $record;
    }
protected function getRecordCached($itemType, $itemUid, $additionalRecordFields)
    {
        $cache = GeneralUtility::makeInstance(TwoLevelCache::class, /** @scrutinizer ignore-type */ 'cache_runtime');
        $cacheId = md5('Queue' . ':' . 'getRecordCached' . ':' . $itemType . ':' . $itemUid . ':' . 'pid' . $additionalRecordFields);

        $record = $cache->get($cacheId);
        if (empty($record)) {
            $record = BackendUtility::getRecord($itemType, $itemUid, 'pid' . $additionalRecordFields);
            $cache->set($cacheId, $record);
        }

        return $record;
    }
protected function getRecordCached ( $ itemType , $ itemUid , $ additionalRecordFields ) { $ cache = GeneralUtility :: makeInstance ( TwoLevelCache :: class , /** @scrutinizer ignore-type */ 'cache_runtime' ) ; $ cacheId = md5 ( 'Queue' . ':' . 'getRecordCached' . ':' . $ itemType . ':' . $ itemUid . ':' . 'pid' . $ additionalRecordFields ) ; $ record = $ cache -> get ( $ cacheId ) ; if ( empty ( $ record ) ) { $ record = BackendUtility :: getRecord ( $ itemType , $ itemUid , 'pid' . $ additionalRecordFields ) ; $ cache -> set ( $ cacheId , $ record ) ; } return $ record ; }
Get record to be added in addNewItem

@param string $itemType The item's type, usually a table name.
@param string $itemUid The item's uid, usually an integer uid, could be a
different value for non-database-record types.
@param string $additionalRecordFields for sql-query

@return array|NULL
Get record to be added in addNewItem