When the elements of a parent do not have unique representation, it
can be desirable to store the cache of (some of) the methods in the
parent rather than in the element.
This patches implements a variant @cached_in_parent_method of the
decorator @cached_method which does just this.
CC: @sagetrac-sage-combinat
Component: misc
Keywords: cached_method, cache
Issue created by migration from https://trac.sagemath.org/ticket/5449