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

oops. thanks.