diff --git a/src/pages/setup/cache/cache.component.html b/src/pages/setup/cache/cache.component.html
new file mode 100644
index 0000000..6723dd1
--- /dev/null
+++ b/src/pages/setup/cache/cache.component.html
@@ -0,0 +1,81 @@
+
Настройка кэша
+
+
+ На этой странице вы можете выбрать и настроить параметры кэширования для приложения.
+
+
+ Укажите тип кэша, например, Redis, и настройте параметры подключения, чтобы улучшить производительность и снизить
+ нагрузку на базу данных.
+
+
+
diff --git a/src/services/cache.service.ts b/src/services/cache.service.ts
deleted file mode 100644
index 7409523..0000000
--- a/src/services/cache.service.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-import {Injectable} from '@angular/core';
-
-interface CacheEntry {
- data: T;
- expiry: number;
-}
-
-@Injectable({
- providedIn: 'root'
-})
-export class CacheService {
- private handleQuotaExceeded(): void {
- const keys: string[] = [];
- const expiries: number[] = [];
-
- for (let i = 0; i < localStorage.length; i++) {
- const key = localStorage.key(i);
- if (!key) continue;
-
- const cacheEntry = JSON.parse(localStorage.getItem(key) as string) as CacheEntry;
- keys.push(key);
- expiries.push(cacheEntry.expiry);
- }
-
- // Удаляем самый старый элемент
- const oldestIndex = expiries.indexOf(Math.min(...expiries));
- localStorage.removeItem(keys[oldestIndex]);
- }
-
- private isQuotaExceededError(e: unknown): e is DOMException {
- return e instanceof DOMException && (
- e.name === 'QuotaExceededError' ||
- e.name === 'NS_ERROR_DOM_QUOTA_REACHED'
- );
- }
-
- set(key: string, data: T, ttl: number): void {
- const expiry = Date.now() + ttl;
- const cacheEntry: CacheEntry = {data, expiry};
-
- try {
- localStorage.setItem(key, JSON.stringify(cacheEntry));
- } catch (e) {
- if (this.isQuotaExceededError(e)) {
- this.handleQuotaExceeded();
- localStorage.setItem(key, JSON.stringify(cacheEntry));
- } else {
- throw e;
- }
- }
- }
-
- get(key: string): T | null {
- const cached = localStorage.getItem(key);
- if (!cached) return null;
-
- const cacheEntry = JSON.parse(cached) as CacheEntry;
- if (Date.now() > cacheEntry.expiry) {
- localStorage.removeItem(key);
- return null;
- }
-
- return cacheEntry.data;
- }
-}