摘要: 一、django缓存 1.缓存位置 缓存的地方: 1 内存中 2 文件中(硬盘上) 3 数据库缓存(硬盘上) 4 redis中(后期都用它,内存上,更快) 5 通过配置,设置缓存位置 -以文件缓存为例,在settings.py中配置 CACHES = { 'default': { 'BACKEND' 阅读全文
posted @ 2020-11-18 19:54 1024bits 阅读(214) 评论(0) 推荐(0) 编辑