Currently, the cache function doesn't truly support methods (see #1129). Let's consider
- making the
cache interface private/internal,
- adding support for this (and admitting that it's a public interface/utility), or—at the very least
- adding a warning to prevent confusion.