Method: Redis#del

Defined in:
lib/redis.rb

#del(*keys) ⇒ Fixnum

Delete one or more keys.

Parameters:

  • keys (String, Array<String>)

Returns:

  • (Fixnum)

    number of keys that were deleted


536
537
538
539
540
# File 'lib/redis.rb', line 536

def del(*keys)
  synchronize do |client|
    client.call([:del] + keys)
  end
end