Expose the memoize cache.

Perhaps this goes without saying, but this implementation makes changes to implementation breaking.  For instance, using a `Map` instead of an object.