do not fail on exceptions when pulling from cache

This commit is contained in:
xvrl 2013-03-06 19:22:15 -08:00
parent 8f6c313561
commit 2837309075
1 changed files with 4 additions and 2 deletions

View File

@ -147,7 +147,8 @@ public class MemcachedCache implements Cache
throw Throwables.propagate(e);
}
catch(ExecutionException e) {
throw Throwables.propagate(e);
log.warn(e, "Exception pulling item from cache");
return null;
}
}
@ -240,7 +241,8 @@ public class MemcachedCache implements Cache
throw Throwables.propagate(e);
}
catch(ExecutionException e) {
throw Throwables.propagate(e);
log.warn(e, "Exception pulling item from cache");
return results;
}
}