Start master in another window with redis-server master.conf
Fill master server with 10% keys that will expire very soon and 90% keys that wont expire for a while:
% ruby fill.rb | redis-cli --pipe -p 9998
All data transferred. Waiting for the last reply...
Last reply received from server.
errors: 0, replies: 1000002
Wait a few seconds and then start slave in another window with redis-server slave.conf
Verify that the slave expunged all low-TTL keys prematurely:
% redis-cli -p 9998 info | grep db0
db0:keys=999800,expires=999800,avg_ttl=19697029
% redis-cli -p 9999 info | grep db0
db0:keys=900001,expires=900001,avg_ttl=0