I am surprised no one has replied something like : "Buy bitcoins. Contrary to fiat money Bitcoin can't be printed by governments and as a result there is no inflation with Bitcoin" yet.
I think it would suffer from the gold problem though, where what you are buying is _interest_ in the underlying asset. So it peaks before the anticipated inflation, and then during the inflation it actually doesn't keep up as people offload it but don't buy more. Ex-
https://www.cnbc.com/2021/06/08/gold-as-an-inflation-hedge-h...
Bitcoin is extremely volatile and isn’t directly correlated with inflation, it has the same problem with inflated asset values that everything does right now.