pr comments

This commit is contained in:
digitalbuddha 2017-01-31 08:21:03 -05:00
parent 9dfb6c5375
commit aae31d7247

View file

@ -265,9 +265,9 @@ final class RealInternalStore<Raw, Parsed> implements InternalStore<Parsed> {
@Override
public void clearMemory() {
memCache.invalidateAll();
inFlightRequests.invalidateAll();
clearDiskIfNoOp();
memCache.invalidateAll();
}
private void clearDiskIfNoOp() {
@ -283,9 +283,9 @@ final class RealInternalStore<Raw, Parsed> implements InternalStore<Parsed> {
*/
@Override
public void clearMemory(@Nonnull final BarCode barCode) {
memCache.invalidate(barCode);
inFlightRequests.invalidate(barCode);
clearDiskIfNoOp();
memCache.invalidate(barCode);
}
/**