Cache

replpp.util.Cache$
object Cache

A simple cache for cacheKey -> Path, where Path is a single file

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cache.type

Members list

Value members

Concrete methods

def getOrDownload(cacheKey: String, downloadUrl: URI): Path

similar to getOrObtain, but specifically for files that need to be downloaded

similar to getOrObtain, but specifically for files that need to be downloaded

Attributes

def getOrObtain(cacheKey: String, obtain: () => InputStream): Path
def remove(cacheKey: String): Boolean

Attributes

Returns

true if cache entry did actually exist

Concrete fields

lazy val Dir: Path