Magnetically induced pumping and memory storage in quantum rings