brandonwamboldt/redis-tools — pull request #1 by powdahound (2014-07-13 18:22:01+00:00)
Title: Fetch TTL properly. Handle expired keys in Redis 2.8.

RESTORE wants the expiry time in milliseconds, so use pttl() instead of ttl().

Also, Redis 2.8 returns -2 if the key doesn't exist, so we'll catch that and avoid storing the key on the destination host.