Expose the memoize cache.
Merge pull request #1627 from braddunbar/memoize-cache

Expose the memoize cache.