An enumerator that uses a cache to emulate normal array functionality in Ruby.