简体   繁体   English

使用毕加索从磁盘加载图像,是否将其缓存?

[英]Loading images from disk with picasso, does it cache it?

I am planning to use PICASSO for loading images from disk (not network). 我计划使用PICASSO从磁盘(而非网络)加载图像。

Does it do Caching as well? 它也可以缓存吗? I dont want it to cache when it is already on desk Thank you 我不希望它在桌面上时缓存它谢谢

When loading the image you can set the memory policy to NO_STORE: 加载图像时,可以将内存策略设置为NO_STORE:

Picasso
    .with(context)
    .memoryPolicy(MemoryPolicy.NO_STORE)
    ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM