Expired After Removed

14 views
Skip to first unread message

Justin Noel

unread,
Jan 26, 2014, 10:51:58 AM1/26/14
to angula...@googlegroups.com
Jason,

I'm having trouble wrapping my head around how to do a refresh of a cache.  Say for example someone does a pull to refresh.  Using the "onExpire" & "another example" method describe here : http://jmdobry.github.io/angular-cache/configuration.html#onexpire, if the key has been reset to an empty array or deleted after the pull to refresh, it will not be expired and the onExpire won't trigger.

So, how should we trigger a cache expiration?  I think the best way would be to mark the cache as expired, but I don't see a method to do that.

Do you have suggestions?

Thanks,
Justin
Reply all
Reply to author
Forward
0 new messages