SYNOPSIS
A through stream that caches
MOTIVATION
There are some cases where the same data is piped over and over again. In these cases there is no reason to repeat the transformation of the data when the result can be retrieved from a cache.
USAGE
Create a cache and pipe to its cache
method.
//// create a new cache//var tc = a
To cache a function that will get applied to the data.
a
And to invalidate the cache.
tc.invalidate()