Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight cleanup of grammar in Hashes section. #61

Merged
merged 1 commit into from Sep 12, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions topics/data-types.md
Expand Up @@ -83,21 +83,21 @@ You can do many interesting things using Redis Sets, for instance you can:
Hashes
---

Redis Hashes are maps between string field and string values, so they are the perfect data type to represent objects (for instance Users with a number of fields like name, surname, age, and so forth):
Redis Hashes are maps between string fields and string values, so they are the perfect data type to represent objects (eg: A User with a number of fields like name, surname, age, and so forth):

@cli
HMSET user:1000 username antirez password P1pp0 age 34
HGETALL user:1000
HSET user:1000 password 12345
HGETALL user:1000

An hash with a few fields (where few means even one hundred) is stored in a way
that takes very few space, so you can store millions of objects even in a small
A hash with a few fields (where few means up to one hundred or so) is stored in a way
that takes very little space, so you can store millions of objects in a small
Redis instance.

While Hashes are used mainly to represent objects, they are actually capable of storing many many elements, so you can use Hashes for many other tasks as well.
While Hashes are used mainly to represent objects, they are capable of storing many elements, so you can use Hashes for many other tasks as well.

Every hash can store up to 2^32-1 field-value pairs (more than 4 billions).
Every hash can store up to 2^32-1 field-value pairs (more than 4 billion).

Check the [full list of Hash commands](/commands#hash) for more information.

Expand Down