Hello,
About diffs, it's very hard and AOF will not work as well because
every time you generate an AOF keys and single elements of aggregate
data types may be shuffled from the point of view of the order of
generation, otherwise BGREWRITEAOF could do the trick.
So to diff you probably want to use an RDB -> Json tool or something
like this, and specifically one that will sort keys lexicographically.
To reload a DB you could use:
DEBUG RELOAD
But it's a debugging command so I can not ensure that it will work
well. It is used only inside the Redis test suite so the approach
should be something like, test it, if it works for you, use it, but it
is not something supported officially ;)
Salvatore
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter