Skip to content

Commit

Permalink
Added size measurement for hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvt committed May 29, 2011
1 parent d999ebf commit 6cfa3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis-summary
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class RedisStats
when 'list' then db.lrange(k, 0, -1).size
when 'zset' then db.zrange(k, 0, -1).size
when 'set' then db.smembers(k).size
when 'hash' then 0
when 'hash' then db.hgetall(k).to_a.flatten.join.size
else raise("Redis type '#{t}' not yet supported.") # TODO accommodate more types
end
end
Expand Down

0 comments on commit 6cfa3c6

Please sign in to comment.