rework CacheWriter writeAll() and deleteAll() to permit partial success

wil fix the typo. I'll try it, but to raw types for the parameters won't just push the cast higher?