Method: Redis#hdel

Defined in:
lib/redis.rb

#hdel(key, field) ⇒ Fixnum

Delete one or more hash fields.

Parameters:

  • key (String)
  • field (String, Array<String>)

Returns:

  • (Fixnum)

    the number of fields that were removed from the hash



1921
1922
1923
1924
1925
# File 'lib/redis.rb', line 1921

def hdel(key, field)
  synchronize do |client|
    client.call([:hdel, key, field])
  end
end