基于pickle或json的简单文件缓存
simple-file-cache的Python项目详细描述
简单的\u文件\缓存
基于pickle或json文件的Python简单缓存
使用
data={"hi":"hello"}# usage 1: as a file cache@file_cache(file='export.json',type='json')defdo_job():returndata# usage 2: load file as fast asrs=load_file(file='export.json',type='json')# usage 3: dump file as fast asrs=dump_file(file='export.json',type='json',data=data)
- 项目
标签: