When you stuff dollar bills under your mattress, knowing that they will be there next year to help buy your next major purchase, money is serving which function:

Store of real assets

Medium of exchange

Store of wealth

Unit of account