Get all the cache identifiers.

@return array
343178
public function findAllIdentifiers(): array
    {
        $queryBuilder = $this->createQuery();
        $rows = $queryBuilder->select('identifier')
            ->from($this->getTableName())
            ->groupBy('identifier')
            ->execute()
            ->fetchAll();

        $cacheIdentifiers = [];
        foreach ($rows as $row) {
            $cacheIdentifiers[] = $row['identifier'];
        }

        return $cacheIdentifiers;
    }
639552
public function getCacheTag()
    {
        return $this->cacheTagPrefix .
            ($this->isAttributeChanged($this->idAttribute) ? $this->getOldAttribute($this->idAttribute) : $this->getID());
    }
1350576
public static function getCacheDirPaths()
	{
		$cacheDir = \System::getContainer()->getParameter('kernel.cache_dir') . '/contao';

		$dirFullPath = $cacheDir . '/rocksolid_icon_picker';
		$dirPath = $dirFullPath;
		if (
			substr($dirPath, 0, strlen(TL_ROOT) + 1) === TL_ROOT . '/'
			|| substr($dirPath, 0, strlen(TL_ROOT) + 1) === TL_ROOT . '\\'
		) {
			$dirPath = substr($dirPath, strlen(TL_ROOT) + 1);
		}

		return array(
			'path' => $dirPath,
			'fullPath' => $dirFullPath,
		);
	}
1196276
public function details() : array
    {
        $now = Carbon::now();

        return [
            'name' => $this->name,
            'size' => $this->fileSize,
            'offset' => $this->offset,
            'checksum' => $this->checksum,
            'location' => $this->location,
            'file_path' => $this->filePath,
            'created_at' => $now->format($this->cache::RFC_7231),
            'expires_at' => $now->addSeconds($this->cache->getTtl())->format($this->cache::RFC_7231),
        ];
    }
713729
public function getIds()
    {
        $res = array();
        $array = wincache_ucache_info();
        $records = $array['ucache_entries'];
        foreach ($records as $record) {
            $res[] = $record['key_name'];
        }
        return $res;
    }
233979
protected function getKernelParameters()
    {
        return array_merge(
            array(
                'kernel.root_dir' => realpath($this->rootDir) ?: $this->rootDir,
                'kernel.environment' => $this->environment,
                'kernel.debug' => $this->debug,
                'kernel.name' => $this->name,
                'kernel.cache_dir' => realpath($this->getCacheDir()) ?: $this->getCacheDir(),
                'kernel.logs_dir' => realpath($this->getLogDir()) ?: $this->getLogDir(),
                'kernel.charset' => $this->getCharset(),
                'kernel.container_class' => $this->getContainerClass(),
            ),
            $this->getEnvParameters()
        );
    }
653572
private static function caches()
    {
        $files = ['Driver', 'FileDriver', 'ArrayDriver', 'PhpFilesDriver', 'ApcDriver', 'PDODriver'];
        $folder = static::$root.'Caches/Drivers'.'/';

        self::call($files, $folder);

        $files = ['Item', 'Cache'];
        $folder = static::$root.'Caches'.'/';

        self::call($files, $folder);

        $files = ['CacheItemNotFoundException', 'DriverNotFoundException', 'DatabaseSurfaceDisabledException'];
        $folder = static::$root.'Caches/Exceptions'.'/';

        self::call($files, $folder);
    }
1138921
public function getAsPair()
    {
        $result = array();

        foreach ($this->data as $key => $options) {
            $result[$key] = $options[self::CACHE_PARAM_VALUE];
        }

        return $result;
    }
897023
public function names()
    {
        if ($this->indexListCache) {
            return $this->indexListCache;
        }

        // Attempt to have a zero SQL Drupal
        $doCache = variable_get('ucms_search_cache_list', true);

        if ($doCache && ($cached = $this->cache->get(self::CID_LIST))) {
            $this->indexListCache = $cached->data;
        } else {

            $this->indexListCache = $this
                ->db
                ->query(
                    "SELECT index_key, name FROM {ucms_search_index}"
                )
                ->fetchAllKeyed()
            ;

            if ($doCache) {
                $this->cache->set(self::CID_LIST, $this->indexListCache);
            }
        }

        return $this->indexListCache;
    }
769307
public function keys()
    {
        $names = $this->cache->keys();

        if (empty($names) && !$this->cache->isFresh()) {
            $this->refresh();

            return $this->keys();
        }

        return $names;
    }
592974
public function getCacheKey()
    {
        if (is_null($this->cacheKey)) {
            return $this->prefix.$this->id;
        }

        return $this->cacheKey;
    }
774057
public function all()
    {
        if ($this->useCache()) {
            return $this->cache->remember($this->getCacheKey(), $this->getCacheLifetime(), function () {
                return $this->scan();
            });
        }

        return $this->scan();
    }
914881
public function all()
	{
		$hash = $this->options['hash'];

		$allinfo = wincache_ucache_info();

		$data = array();

		foreach ($allinfo['cache_entries'] as $key)
		{
			$name    = $key['key_name'];
			$namearr = explode('-', $name);

			if ($namearr !== false && $namearr[0] == $hash && $namearr[1] == 'cache')
			{
				$group = $namearr[2];
				if (!isset($data[$group]))
				{
					$item = new Auditor($group);
				}
				else
				{
					$item = $data[$group];
				}
				if (isset($key['value_size']))
				{
					$item->tally($key['value_size'] / 1024);
				}
				else
				{
					// Dummy, WINCACHE version is too low.
					$item->tally(1);
				}

				$data[$group] = $item;
			}
		}

		return $data;
	}
1124431
public function prepare_to_cache() {
        return array(
            'class' => get_class($this),
            'id' => $this->id,
            'ctxid' => $this->context->id,
            'options' => $this->options,
            'readonly' => $this->readonly
        );
    }
439323
public function _GetCacheParameters()
    {
        $aParams = array();
        $oShop = TdbShop::GetInstance();

        $oActiveCategory = $oShop->GetActiveCategory();
        if (!is_null($oActiveCategory)) {
            $aParams['activecategoryid'] = $oActiveCategory->id;
        }
        $oActiveManufacturer = TdbShop::GetActiveManufacturer();
        if ($oActiveManufacturer) {
            $aParams['activemanufacturerid'] = $oActiveManufacturer->id;
        }

        return $aParams;
    }
532625
protected function getIDListFromCache() : array
    {
        $arElementIDList = parent::getIDListFromCache();

        //Get active product list
        $arActiveProductIDList = ProductListStore::instance()->active->get();
        if (empty($arActiveProductIDList) || empty($arElementIDList)) {
            return [];
        }

        $arResult = [];
        foreach ($arElementIDList as $iProductID => $iBrandID) {
            if (!in_array($iProductID, $arActiveProductIDList)) {
                continue;
            }

            $arResult[] = $iBrandID;
        }

        $arResult = array_unique($arResult);

        return $arResult;
    }
498175
public function findExpiredIdentifiers(): array
    {
        $queryBuilder = $this->createQuery();
        $rows = $queryBuilder->select('identifier')
            ->from($this->getTableName())
            ->where($queryBuilder->expr()->lt(
                'expires',
                $queryBuilder->createNamedParameter((new DateTimeService())->getCurrentTime(), \PDO::PARAM_INT)
            ))
            ->groupBy('identifier')
            ->execute()
            ->fetchAll();

        $cacheIdentifiers = [];
        foreach ($rows as $row) {
            $cacheIdentifiers[] = $row['identifier'];
        }

        return $cacheIdentifiers;
    }