技术栈

lru 缓存

勤奋的大熊猫
4 个月前
python·缓存·lru 缓存
Python OrderedDict 实现 Least Recently used(LRU)缓存LRU 缓存是一种缓存替换策略,当缓存空间不足时,会移除最久未使用的数据以腾出空间存放新的数据。LRU 缓存的特点: