How to Hide the "Redis" Admin Menu

function plt_hide_redis_cache_menus() {
	//Hide the "Settings → Redis" menu.
	remove_submenu_page('options-general.php', 'redis-cache');
}

add_action('admin_menu', 'plt_hide_redis_cache_menus', 11);

Where do I put this code?