Method: Redis#rpop

Defined in:
lib/redis.rb

#rpop(key) ⇒ String

Remove and get the last element in a list.

Parameters:

  • key (String)

Returns:

  • (String)


507
508
509
510
511
# File 'lib/redis.rb', line 507

def rpop(key)
  synchronize do
    @client.call [:rpop, key]
  end
end