跳转至

diskcache本地缓存持久化

  • 视频 【编程】Python : diskcache 本地缓存持久化,一行代码

  • 缓存考虑

    • Redis 数据库
    • memcache
  • 临时缓存

    • lru_cache 服务器使用
      • from functools import 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