Returns a function with the same signature as the factory, caching its result per object. Uses the same cache as getCached, so values are shared when the same factory is used.
A function that creates the value to be cached
A function that returns the cached value or a newly created value from the factory
Returns a function with the same signature as the factory, caching its result per object. Uses the same cache as getCached, so values are shared when the same factory is used.