clearAllCacheByModel(); } public function clearAllCacheByModel(): void { $this->clearSliderCache(); } public function getCachedData(string $key) { return Cache::get($key); } public function cacheData(string $key, $data, int $ttl = null): void { Cache::put($key, $data, $ttl ?? self::DEFAULT_TTL); } private function clearSliderCache(): void { $this->clearCacheByPrefix(CacheKeys::SLIDER_PREFIX->value.'*'); } }