Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Coil3 Integration key format #834

Open
1 task done
PranavPurwar opened this issue Jan 12, 2025 · 1 comment
Open
1 task done

[Question]: Coil3 Integration key format #834

PranavPurwar opened this issue Jan 12, 2025 · 1 comment
Labels
question Further information is requested

Comments

@PranavPurwar
Copy link

General info

What is your question?

Hey! I'm using coil3 integration in my app. I need to periodically rebuild the image cache. Is there a specific key format to which the cache is saved by the plugin?

I'm trying to remove the image cache with

context.imageLoader.diskCache.remove(someKey)

Relevant log output (optional)

No response

@PranavPurwar PranavPurwar added the question Further information is requested label Jan 12, 2025
@jan-tennert
Copy link
Collaborator

The integration does not do the saving/fetching, it refers to the Coil 3 Network Fetcher:

val (fetcher, _) = imageLoader.components.newFetcher(
url.toUri(),
options.copy(extras = extras.build()),
imageLoader
) ?: error("No fetcher found for $url")
return fetcher.fetch()

So maybe the key is the url?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants