From 7abdc45e936c1d1ad5ddff379ae65150baa04979 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 31 Aug 2009 10:41:59 -0400 Subject: [PATCH] Helper CacheResult subclass --- cache/SeparatedCache.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cache/SeparatedCache.scala b/cache/SeparatedCache.scala index f9b212f4a..91ecda713 100644 --- a/cache/SeparatedCache.scala +++ b/cache/SeparatedCache.scala @@ -9,6 +9,11 @@ trait CacheResult def uptodate: Boolean def update(stream: OutputStream): Unit } +class ForceResult[I](inCache: InputCache[I])(in: I) extends CacheResult +{ + def uptodate = false + def update(stream: OutputStream) = inCache.force(in)(stream) +} trait InputCache[I] extends NotNull { def uptodate(in: I)(cacheStream: InputStream): CacheResult