lib/redis-copy/strategy/new.rb in redis-copy-0.0.3 vs lib/redis-copy/strategy/new.rb in redis-copy-0.0.5

- old
+ new

@@ -4,9 +4,11 @@ module Strategy class New include Strategy def copy(key) + @ui.debug("COPY: #{key.dump}") + ttl = @src.ttl(key) # TTL returns seconds, -1 means none set # RESTORE ttl is in miliseconds, 0 means none set translated_ttl = (ttl && ttl > 0) ? (ttl * 1000) : 0