May 11, 2019
https://issues.dlang.org/show_bug.cgi?id=19859

          Issue ID: 19859
           Summary: std.functional.memoize: Ability to clear the cache
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody@puremagic.com
          Reporter: aurelien.fredouelle+dlang@gmail.com

Other common implementations of memoize usually allow to reset the cache. For example, this is quite common in python:

@memoize
def square (x):
  return x*x

square(2)
square(3)

square.cache.clear()

It would be helpful if we could accomplish the same with std.functional.memoize.

--