React-native-fast-image: Control cache time?

Created on 25 Jul 2017  路  3Comments  路  Source: DylanVann/react-native-fast-image

Is it possible to define / control how long images are cached by this library?
How long are images cached at all when using this library?

I'm asking this because I want to use this library for user-specific data that might get deleted. If so, the images (that are not related to any up-to-date content and so never shown again) should not stay forever, obviously.

Maybe this is a dumb question but hopefully someone will answer it anyway.

Thank you.

All 3 comments

It's like a first in first out buffer. The image cache grows to a set size. After that the oldest images are deleted as new one's are added. You probably don't need to worry about this.

@DylanVann how much is this set size? Is there a way to change it or force clear cache programmatically with a button?

I don't think people need control that is that granular in most situations. Why do you think you need this capability?

Closing this issue for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pehagg picture pehagg  路  3Comments

ryoid picture ryoid  路  3Comments

yeomann picture yeomann  路  4Comments

kmilodenisglez picture kmilodenisglez  路  3Comments

NgocNamFNT picture NgocNamFNT  路  3Comments