ASimpleCache应该是通过利用Android的Cache 目录 + 读写文件实现的吧? 如果否, 下文就不需要理会了.
效率性能什么的暂且不说, 只就Context.getCacheDir() 这个函数来说说, 作者是否有注意到Reference中提到的问题, 如下:
public abstract File getCacheDir () Returns the absolute path to the application specific cache directory on the filesystem. These files will be ones that get deleted first when the device runs low on storage. There is no guarantee when these files will be deleted. Note: you should not rely on the system deleting these files for you; you should always have a reasonable maximum, such as 1 MB, for the amount of space you consume with cache files, and prune those files when exceeding that space.