Support kwargs in memoize_method