Cache<'a, 'b>
Cache represents a cached function which can be invoked and revoked. invoke increments the reference count for a specific argument (possibly causing the function to be executed) whereas revoke decreases the reference count and removes the cache entry whenever the reference count is 0.
Constructors
Constructor | Description |
new(scope, f)
Signature: (scope:Scope * f:('a -> 'b)) -> Cache<'a,'b>
|
|
new(f)
Signature: (f:('a -> 'b)) -> Cache<'a,'b>
|