mirror of
https://github.com/ltcptgeneral/cs239-caching.git
synced 2025-04-01 12:33:25 +00:00
16 lines
308 B
Python
16 lines
308 B
Python
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 |