SCAN + Support for large keyspace backup
The code at present doesn't look like it'd support redis instances with millions of keys. Probably a few things need to be done:
-
Add a test with a large amount of randomly generated keys (see if it works/where it breaks) -
Use scan
instead ofkeys
-
Create new Iterator
s as necessary to prevent use of anyVec
s
Vec
s should be buffered and it might work but if the above is done it should definitely work
Edited by MrMan