Method: Redis#hexists

Defined in:
lib/redis.rb

#hexists(key, field) ⇒ Boolean

Determine if a hash field exists.

Parameters:

  • key (String)
  • field (String)

Returns:

  • (Boolean)

    whether or not the field exists in the hash



1900
1901
1902
1903
1904
# File 'lib/redis.rb', line 1900

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