assert redis.hlen("myhash") == 0 redis.hset("myhash", values={ "field1": "Hello", "field2": "World" }) assert redis.hlen("myhash") == 2
Returns the number of fields contained in the hash stored at key.
Was this page helpful?