我正在使用 RNCamera 拍照。所拍照片的路径位于文件系统缓存中。像这样的东西:
“file:///data/user/0/com.find/cache/Camera/1986b5f9-4770-a255-543703fc6597.jpg”
然后我使用react native 图像编辑器裁剪这个图像,我得到另一个文件。像这样的东西:
“file:///data/user/0/com.find/cache/ReactNative_cropped_image_8510242.jpg”
这些文件(至少根据图像的文件路径)存储在手机的缓存中。
我的问题是:我可以确定这些图像会在缓存中保留多长时间?当应用程序关闭时它们会被清除吗?还是会一直保留到我自己删除它们?
谢谢!