Skip to content

Is the Disk Cache safe across multiple processes? #964

Answered by colinrtwhite
yschimke asked this question in Q&A
Discussion options

You must be logged in to vote

I believe it's the same in Coil 2.x (it's single instance/process). By default, we share a DiskCache instance between ImageLoaders to prevent multiple disk cache instances acting in the same directory. Internally, Coil's DiskLruCache is a slightly modified version of OkHttp's (also let me know if you want better credits added to that file - I only kept the existing file header).

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by yschimke
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@yschimke
Comment options

@colinrtwhite
Comment options

@yschimke
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants