Method: Redis#hlen
- Defined in:
- lib/redis.rb
#hlen(key) ⇒ Fixnum
Get the number of fields in a hash.
1681 1682 1683 1684 1685 |
# File 'lib/redis.rb', line 1681 def hlen(key) synchronize do |client| client.call [:hlen, key] end end |