lib/redis/commands/strings.rb in redis-5.0.3 vs lib/redis/commands/strings.rb in redis-5.0.4

- old
+ new

@@ -103,20 +103,20 @@ # @param [String] key # @param [Integer] ttl # @param [String] value # @return [String] `"OK"` def setex(key, ttl, value) - send_command([:setex, key, ttl, value.to_s]) + send_command([:setex, key, Integer(ttl), value.to_s]) end # Set the time to live in milliseconds of a key. # # @param [String] key # @param [Integer] ttl # @param [String] value # @return [String] `"OK"` def psetex(key, ttl, value) - send_command([:psetex, key, ttl, value.to_s]) + send_command([:psetex, key, Integer(ttl), value.to_s]) end # Set the value of a key, only if the key does not exist. # # @param [String] key