put `cache` in function names and add deprecation warnings