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


2250
2251
2252
2253
2254
# File 'lib/redis.rb', line 2250

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