fauna/memcached — pull request #71 by chriseppstein (2011-10-13 16:40:35+00:00)
Title: Cast TTL values to integers to better support ActiveSupport::Duration values.

This pull request addresses issue #39 which is still present despite being closed and agreed to be fixed if a pull was submitted.

Cast TTL values to integers to better support ActiveSupport::Duration values.
To avoid special casing Active::SupportDuration, this patch just calls
to_i on the ttl value, but this causes a problem if the the argument is
a Time object. So this patch also now allows Time values to be passed
as long as they are in the future by converting them to a duration of
time in seconds.