timfpark / react-native-cache

React Native LRU cache build on top of AsyncStorage
194 stars 32 forks source link

Add Expiration #20

Open wsdt opened 5 years ago

wsdt commented 5 years ago

It would be amazing if cache-entries expire automatically after a specified duration.

timfpark commented 4 years ago

I would love to have a PR to do this. It would involve essentially adding tracking for the expiration time of all of the entries, tracking the nearest expiration, and holding a timeout to do the expiration.

eubnara commented 4 years ago

I made a PR(https://github.com/timfpark/react-native-cache/pull/25). I'd appreciated if you guys review this.

sagupta1001 commented 3 years ago

Could we release this please? Our project is using v 2.0.1 and would like to upgrade to a version that has expiration.