Cache

object Cache
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Materializes a cache.

Materializes a cache.

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 Params
cacheFile

The store that backs this cache.

default

A function that computes a default value to insert on

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 Params
default

A function that computes a default value to insert on

store

The store that backs this cache.

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