1
0
mirror of https://github.com/ltcptgeneral/cs239-caching.git synced 2025-10-28 14:46:49 +00:00

add no cache and ideal cache,

move printing cache reports to util file
This commit is contained in:
Arthur Lu
2025-03-02 21:22:31 +00:00
committed by root
parent 50b5ea0acd
commit 35ea5a234f
9 changed files with 80 additions and 50 deletions

16
app/cache/idealcache.py vendored Normal file

@@ -0,0 +1,16 @@
from .cache import Cache
from database import get_user_profile
class IdealCache(Cache):
def __init__(self, limit: int):
pass
def get(self, key):
return get_user_profile(key)
def put(self, key, val):
return False
def invalidate(self, key):
return False