def ttl_or_default(ttl)
      (ttl || @options[:expires_in]).to_i
    rescue NoMethodError
      raise ArgumentError, "Cannot convert ttl (#{ttl}) to an integer"
    end
#
Uses the argument TTL or the client-wide default.  Ensures
that the value is an integer
#