These are chat archives for ReactiveX/RxJava

2nd
Sep 2015
Justin Hall
@wKovacs64
Sep 02 2015 17:15
Is there a way to clear the cache from a caching Observable (.cache()) once the cached value has been emitted (observed by a subscriber)?
David Stemmer
@weefbellington
Sep 02 2015 18:47
@wKovacs64 is there a reason you can't simply create a new Observable?
Justin Hall
@wKovacs64
Sep 02 2015 19:29
@weefbellington I might be able to, although it could be messy due to where the Observable lives vs. the Subscription actions. That might be what I have to do if there isn't a native way to clear it.
Dave Moten
@davidmoten
Sep 02 2015 19:37
@wKovacs64 I answered that on stack overflow a while back. See http://stackoverflow.com/questions/31733455/rxjava-observable-cache-invalidate/31738646#31738646
Justin Hall
@wKovacs64
Sep 02 2015 19:39
@davidmoten Thanks.
Justin Hall
@wKovacs64
Sep 02 2015 20:38
That post is actually the exact same scenario I'm in, heh.