Coder Social home page Coder Social logo

Comments (9)

molinch avatar molinch commented on July 19, 2024 2

It did but we changed some parts to be in ImageService only.

So for Forms, if you invalidate a single image, then you can do it with the custom renderer static method:

public static async Task InvalidateCache(ImageSource source, Cache.CacheType cacheType, bool removeSimilar = false)

Or directly with ImageService.Instance:
Task InvalidateCacheEntryAsync(string key, CacheType cacheType, bool removeSimilar=false);

And if you want to invalidate all images then you should use ImageService.Instance methods:

Task InvalidateCacheEntryAsync(string key, CacheType cacheType, bool removeSimilar=false);

You can also see the Wiki: https://github.com/luberda-molinet/FFImageLoading/wiki/Xamarin.Forms-API#clear-cache

from ffimageloading.

molinch avatar molinch commented on July 19, 2024

It would be nice if you could play with the new ImageService methods

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on July 19, 2024

Ok, I'll add them for Window too. What about Forms? What do you think about static methods:

  • CachedImage.ClearCache()
  • CachedImage.RemoveKeyFromCache(string key)

?

from ffimageloading.

molinch avatar molinch commented on July 19, 2024

Fine for me. I still think that knowing from which cache it's removed would
make sense.
Most of the time you don't want to mess with disk cache

2015-11-20 13:49 GMT+01:00 Daniel Luberda [email protected]:

Ok, I'll add them for Window too. What about Forms? What do you think
about static methods:

  • CachedImage.ClearCache()
  • CachedImage.RemoveKeyFromCache(string key)

?


Reply to this email directly or view it on GitHub
#71 (comment)
.

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on July 19, 2024

Ok, I can add an enum as a parameter :)

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on July 19, 2024

Done with a52d91d a1ccfa5 a2625c9

from ffimageloading.

molinch avatar molinch commented on July 19, 2024

That's great ! 👍

from ffimageloading.

daniel-luberda avatar daniel-luberda commented on July 19, 2024

Forgot to include Forms static methods for clearing cache. But I'll do it very soon :)

from ffimageloading.

kpespisa avatar kpespisa commented on July 19, 2024

It doesn't appear the Forms static method for clearing cache ever made it in?

from ffimageloading.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.