Method: Redis#ltrim

Defined in:
lib/redis.rb

#ltrim(key, start, stop) ⇒ String

Trim a list to the specified range.

Parameters:

  • key (String)
  • start (Fixnum)

    start index

  • stop (Fixnum)

    stop index

Returns:

  • (String)

    OK



401
402
403
404
405
# File 'lib/redis.rb', line 401

def ltrim(key, start, stop)
  synchronize do
    @client.call [:ltrim, key, start, stop]
  end
end