diskcache本地缓存持久化¶
-
缓存考虑
- Redis 数据库
- memcache
-
临时缓存
- lru_cache 服务器使用
- from functools import lru_cache
- lru_cache 服务器使用
-
推荐使用
-
教程
- 安装 https://pypi.org/project/diskcache/
- 教程 http://www.grantjenks.com/docs/diskcache/tutorial.html
- 问题 https://stackoverflow.com/questions/16463582/memoize-to-disk-python-persistent-memoization