Method: Redis#hlen
- Defined in:
- lib/redis.rb
#hlen(key) ⇒ Fixnum
Get the number of fields in a hash.
1773 1774 1775 1776 1777 |
# File 'lib/redis.rb', line 1773 def hlen(key) synchronize do |client| client.call([:hlen, key]) end end |