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

Support several caches #474

Open
yoniker opened this issue May 2, 2022 · 2 comments
Open

Support several caches #474

yoniker opened this issue May 2, 2022 · 2 comments

Comments

@yoniker
Copy link

yoniker commented May 2, 2022

Suppose there are several types of images (user images, friends images, pets images),
and I don't want the user scrolling through his many friends images to have the side effect of deleting his own images from the cache because there's not enough space.

So I want to save the files in different caches (or folders) and limit each folder size.

Not sure how to do it. Digging into the documentation here, I found something regarding the parameter imageCacheName:

The name of [ImageCache], you can define custom [ImageCache] to store this image. In this way you can work with them without affecting other [ImageCache]
--

However, looking at the implementation itself, the images from the network are actually downloaded to the exact same folder:
https://github.com/fluttercandies/extended_image_library/blob/5c80d086b195cbd3e3ce2836fcea8ef2291e3eff/lib/src/platform.dart#L13

How do I actually make several image caches happen then?

@delfme
Copy link

delfme commented Mar 6, 2023

I'm investigating the same requirement. Did you get a solution for this?

1 similar comment
@OctMon
Copy link

OctMon commented Aug 24, 2023

I'm investigating the same requirement. Did you get a solution for this?

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

No branches or pull requests

3 participants