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)