From b28decfc91d3a872d04be01bab55d5750eb09b15 Mon Sep 17 00:00:00 2001
From: Arthur Lu <learthurgo@gmail.com>
Date: Mon, 3 Mar 2025 22:29:45 +0000
Subject: [PATCH] fix sieve nameing

---
 app/cache/{eviction_seive.py => eviction_sieve.py} | 2 +-
 app/{config_seive.yaml => config_sieve.yaml}       | 2 +-
 app/main.py                                        | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
 rename app/cache/{eviction_seive.py => eviction_sieve.py} (99%)
 rename app/{config_seive.yaml => config_sieve.yaml} (61%)

diff --git a/app/cache/eviction_seive.py b/app/cache/eviction_sieve.py
similarity index 99%
rename from app/cache/eviction_seive.py
rename to app/cache/eviction_sieve.py
index 375ad91..d4883d4 100644
--- a/app/cache/eviction_seive.py
+++ b/app/cache/eviction_sieve.py
@@ -8,7 +8,7 @@ class Node:
         self.next = None
         self.prev = None
 
-class SeiveCache(Cache):
+class SieveCache(Cache):
     def __init__(self, limit: int):
         super().__init__(limit)
         self.limit = limit  # Fix: Store limit properly
diff --git a/app/config_seive.yaml b/app/config_sieve.yaml
similarity index 61%
rename from app/config_seive.yaml
rename to app/config_sieve.yaml
index bc86953..b803e21 100644
--- a/app/config_seive.yaml
+++ b/app/config_sieve.yaml
@@ -1,4 +1,4 @@
-cache_strategy: "Seive"
+cache_strategy: "Sieve"
 cache_limit: 50
 l2_cache_limit: 100 # unused
 db_file: "llmData_sns.json" # Change this to the name of any json file within the "database/datastore" folder
\ No newline at end of file
diff --git a/app/main.py b/app/main.py
index 18c7896..a929695 100644
--- a/app/main.py
+++ b/app/main.py
@@ -3,7 +3,7 @@ from database import get_user_ids, get_user_profile, update_user_profile, get_us
 from cache.cache import BaselineCache
 from cache.prefetch_cache import PrefetchCache
 from cache.tiered_cache import TieredCache
-from cache.eviction_seive import SeiveCache
+from cache.eviction_sieve import SieveCache
 from cache.nocache import NoCache
 from cache.idealcache import IdealCache
 from cache.read_after_write_cache import ReadAfterWriteCache
@@ -22,9 +22,9 @@ elif CACHE_STRATEGY == "Prefetch":
 elif CACHE_STRATEGY == "Tiered":
     print("Using tiered cache strategy")
     cache = TieredCache(limit=CACHE_LIMIT, l2_limit=L2_CACHE_LIMIT)
-elif CACHE_STRATEGY == "Seive":
-    print("Using seive cache strategy")
-    cache = SeiveCache(limit=CACHE_LIMIT)
+elif CACHE_STRATEGY == "Sieve":
+    print("Using sieve cache strategy")
+    cache = SieveCache(limit=CACHE_LIMIT)
 elif CACHE_STRATEGY == "None":
     print("Using no cache strategy")
     cache = NoCache(limit=CACHE_LIMIT)