1
0
mirror of https://github.com/ltcptgeneral/cs239-caching.git synced 2025-07-26 22:29:07 +00:00
Files
cs239-caching/app/cache/nocache.py
Arthur Lu 35ea5a234f add no cache and ideal cache,
move printing cache reports to util file
2025-03-02 21:22:31 +00:00

15 lines
250 B
Python

from .cache import Cache
class NoCache(Cache):
def __init__(self, limit: int):
pass
def get(self, key):
return None
def put(self, key, val):
return False
def invalidate(self, key):
return False