Is there an interface we can type-hint instead? Hinting on a cache decorator seems wrong.