1
0
mirror of https://github.com/ltcptgeneral/cs239-caching.git synced 2025-04-01 12:33:25 +00:00

fix sieve nameing

This commit is contained in:
Arthur Lu 2025-03-03 22:29:45 +00:00 committed by root
parent d57069856f
commit b28decfc91
3 changed files with 6 additions and 6 deletions

@ -8,7 +8,7 @@ class Node:
self.next = None self.next = None
self.prev = None self.prev = None
class SeiveCache(Cache): class SieveCache(Cache):
def __init__(self, limit: int): def __init__(self, limit: int):
super().__init__(limit) super().__init__(limit)
self.limit = limit # Fix: Store limit properly self.limit = limit # Fix: Store limit properly

@ -1,4 +1,4 @@
cache_strategy: "Seive" cache_strategy: "Sieve"
cache_limit: 50 cache_limit: 50
l2_cache_limit: 100 # unused l2_cache_limit: 100 # unused
db_file: "llmData_sns.json" # Change this to the name of any json file within the "database/datastore" folder db_file: "llmData_sns.json" # Change this to the name of any json file within the "database/datastore" folder

@ -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.cache import BaselineCache
from cache.prefetch_cache import PrefetchCache from cache.prefetch_cache import PrefetchCache
from cache.tiered_cache import TieredCache 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.nocache import NoCache
from cache.idealcache import IdealCache from cache.idealcache import IdealCache
from cache.read_after_write_cache import ReadAfterWriteCache from cache.read_after_write_cache import ReadAfterWriteCache
@ -22,9 +22,9 @@ elif CACHE_STRATEGY == "Prefetch":
elif CACHE_STRATEGY == "Tiered": elif CACHE_STRATEGY == "Tiered":
print("Using tiered cache strategy") print("Using tiered cache strategy")
cache = TieredCache(limit=CACHE_LIMIT, l2_limit=L2_CACHE_LIMIT) cache = TieredCache(limit=CACHE_LIMIT, l2_limit=L2_CACHE_LIMIT)
elif CACHE_STRATEGY == "Seive": elif CACHE_STRATEGY == "Sieve":
print("Using seive cache strategy") print("Using sieve cache strategy")
cache = SeiveCache(limit=CACHE_LIMIT) cache = SieveCache(limit=CACHE_LIMIT)
elif CACHE_STRATEGY == "None": elif CACHE_STRATEGY == "None":
print("Using no cache strategy") print("Using no cache strategy")
cache = NoCache(limit=CACHE_LIMIT) cache = NoCache(limit=CACHE_LIMIT)