python 使用 LRU Cache
from functools import lru_cache
@lru_cache(None)
def add(x, y):
return x+y
参考资料
https://www.jianshu.com/p/b1ab4a170c3c
Understanding the Meltdown exploit
缓存文件置换机制
缓存文件置换机制 中文
from functools import lru_cache
@lru_cache(None)
def add(x, y):
return x+y
https://www.jianshu.com/p/b1ab4a170c3c
Understanding the Meltdown exploit
缓存文件置换机制
缓存文件置换机制 中文