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