setComponentInstances example

return 'FactoriesCache_' . $component;
    }

    public function load(string $component): bool
    {
        $key = $this->getCacheKey($component);

        if ($data = $this->cache->get($key)) {
            return false;
        }

        Factories::setComponentInstances($component$data);

        return true;
    }

    public function delete(string $component): void
    {
        $this->cache->delete($this->getCacheKey($component));
    }
}
Home | Imprint | This part of the site doesn't use cookies.