1. A memory device comprising: a bottom electrode; a memory element on the bottom electrode, the memory element comprising at least one tungsten-oxygen compound and programmable to at least two resistance states; and a top electrode comprising a barrier material on the memory element, the barrier material preventing movement of metal-ions from the top electrode into the memory element.