Cache

sbt.util.Cache
See theCache companion trait
object Cache

Attributes

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

Members list

Value members

Concrete methods

def cache[I, O](implicit c: Cache[I, O]): Cache[I, O]

Materializes a cache.

Materializes a cache.

Attributes

def cached[I, O](cacheFile: File)(default: I => O)(implicit cache: Cache[I, O]): I => O

Returns a function that represents a cache that inserts on miss.

Returns a function that represents a cache that inserts on miss.

Value parameters

cacheFile

The store that backs this cache.

default

A function that computes a default value to insert on

Attributes

def cached[I, O](store: CacheStore)(default: I => O)(implicit cache: Cache[I, O]): I => O

Returns a function that represents a cache that inserts on miss.

Returns a function that represents a cache that inserts on miss.

Value parameters

default

A function that computes a default value to insert on

store

The store that backs this cache.

Attributes

def debug[I](label: String, cache: SingletonCache[I]): SingletonCache[I]