Add missing type hints for cache storage.