angular-cache
                                
                                 angular-cache copied to clipboard
                                
                                    angular-cache copied to clipboard
                            
                            
                            
                        Is it possible to only delete a cache after the onExpire function completes?
I have some data I want to cache, however it takes a relatively long time to generate this data. My understanding is that if I use angular-cache in either aggressive or passive mode then my cache will be deleted before my onExpire function is called. This means I will have a significant time period where I have no data in the cache - obviously bad.
Is there anyway to close this gap such that there is no point at which I have no data?