To maximize the shelf life of fresh ginger, refrigerate in plastic bag. We've also tried storing ginger submerged in water (see photo) in the fridge. This makes the ginger easier to peel once you need to use it, and keeps it from drying out. Fresh ginger will usually keep well for about 4 to 6 weeks in the refrigerator.
Whole ginger or peeled nubs can be stored in a freezer-safe container for up to 3 months. After 3 months, it's still safe to eat, but may lose some of its quality.