mirror of
https://github.com/ltcptgeneral/cs239-caching.git
synced 2025-09-18 21:17:21 +00:00
add no cache and ideal cache,
move printing cache reports to util file
This commit is contained in:
15
app/cache/nocache.py
vendored
Normal file
15
app/cache/nocache.py
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
Reference in New Issue
Block a user