Can functools.cache be used for methods belonging to a class?

Yes, it works, but note that a naive usage will keep the objects alive eternally, see Memoizing methods considered harmful - #24 by joyful-giraffe