A method of using a nanoionic switch, said switch which includes a substrate, a chalcogenide glass engaging said substrate, said chalcogenide glass includes a metal selected from the group of silver and copper photo-dissolved in said chalcogenide glass, a first oxidizable electrode and a second inert electrode, said first oxidizable electrode and said second inert electrode engaging said chalcogenide glass and being spaced apart from each other forming a gap therebetween, comprising the steps of:
- applying a direct current bias across said oxidizable and inert electrodes of said switch;
- orienting said direct current bias across said switch by applying positive bias to said oxidizable electrode and applying relative negative bias to said inert electrode;
- and,
- electrodepositing said metal selected from the group of silver and copper across said gap between said oxidizable electrode and said inert electrode bridging said switch and closing said switch.