Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k
stars
545
forks
source link
getFromCacheAndLoadFromNetworkIfExpired - success is only called once #436
getSpiceManager().getFromCacheAndLoadFromNetworkIfExpired(request, lastRequestCacheKey, DurationInMillis.ONE_SECOND, new RequestListener<MyList>() {
@Override
public void onRequestFailure(final SpiceException spiceException) {
}
@Override
public void onRequestSuccess(final MyList list) {
...
}
});
I would expect the success block to be called twice (dirty cache/network), but it's only called once (after the network returns). What could be the reasons for thisß
Hi,
I'm using Robospice like the following:
I would expect the success block to be called twice (dirty cache/network), but it's only called once (after the network returns). What could be the reasons for thisß