append a new value for the given key when the cache is closed return previous values
close the given key, the passed value is not cached and just returned for convenience
A SequenceCache can be used as a normal Cache by closing the sequence after the first value has been added
A SequenceCache can be used as a normal Cache by closing the sequence after the first value has been added
This cache is used to memoize a sequence of values for a given key
When the cache is "closed" all subsequent calls to "append" will return previously stored values until the last value is reached.
This cache is used to memoize a sequence of effects leading to the computation of an Eff[R, A]
For example:
val action = asyncFork(1 + 1).flatMap(_ => asyncFork(2 + 2)).flatMap(_ => asyncFork(3 + 3))
if this Async action is memoized then the successive computations 1+1, 2+2, 3+3 will not be recomputed