refactor: Support type checking from cache_for
decorator
#26052
+56
−39
cache_for
decorator
#26052