Barrels help with Spoilage. Reducing spoilage by 5% per active barrel. Some builds can have upto 10 Barrels.
Cellar may have inherent spoliage reduction but this has yet to been tested or confirmed.
Barrles are not considered consumed when they are placed inside a building. They are considered used when the duriabilty has been reduced to 0%.