Skip to content

Commit

Permalink
hash -> myhash
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Mar 6, 2011
1 parent b7fcdce commit 885687f
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions commands/hdel.md
Expand Up @@ -15,7 +15,7 @@ Removes `field` from the hash stored at `key`.
@examples

@cli
HSET hash field1 "foo"
HDEL hash field1
HDEL hash field2
HSET myhash field1 "foo"
HDEL myhash field1
HDEL myhash field2

6 changes: 3 additions & 3 deletions commands/hexists.md
Expand Up @@ -15,7 +15,7 @@ Returns if `field` is an existing field in the hash stored at `key`.
@examples

@cli
HSET hash field1 "foo"
HEXISTS hash field1
HEXISTS hash field2
HSET myhash field1 "foo"
HEXISTS myhash field1
HEXISTS myhash field2

6 changes: 3 additions & 3 deletions commands/hget.md
Expand Up @@ -13,7 +13,7 @@ present in the hash or `key` does not exist.
@examples

@cli
HSET hash field1 "foo"
HGET hash field1
HGET hash field2
HSET myhash field1 "foo"
HGET myhash field1
HGET myhash field2

6 changes: 3 additions & 3 deletions commands/hgetall.md
Expand Up @@ -14,7 +14,7 @@ empty list when `key` does not exist.
@examples

@cli
HSET hash field1 "Hello"
HSET hash field2 "World"
HGETALL hash
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HGETALL myhash

8 changes: 4 additions & 4 deletions commands/hincrby.md
Expand Up @@ -21,8 +21,8 @@ Since the `increment` argument is signed, both increment and decrement
operations can be performed:

@cli
HSET hash field 5
HINCRBY hash field 1
HINCRBY hash field -1
HINCRBY hash field -10
HSET myhash field 5
HINCRBY myhash field 1
HINCRBY myhash field -1
HINCRBY myhash field -10

8 changes: 4 additions & 4 deletions commands/hkeys.md
Expand Up @@ -2,7 +2,7 @@

O(N) where N is the size of the hash.

Returns all field names of the hash stored at `key`.
Returns all field names in the hash stored at `key`.

@return

Expand All @@ -12,7 +12,7 @@ not exist.
@examples

@cli
HSET hash field1 "Hello"
HSET hash field2 "World"
HKEYS hash
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HKEYS myhash

6 changes: 3 additions & 3 deletions commands/hlen.md
Expand Up @@ -12,7 +12,7 @@ Returns the number of fields contained in the hash stored at `key`.
@examples

@cli
HSET hash field1 "Hello"
HSET hash field2 "World"
HLEN hash
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HLEN myhash

6 changes: 3 additions & 3 deletions commands/hmget.md
Expand Up @@ -15,7 +15,7 @@ against a non-existing `key` will return a list of `nil` values.
order as they are requested.

@cli
HSET hash field1 "Hello"
HSET hash field2 "World"
HMGET hash field1 field2 nofield
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HMGET myhash field1 field2 nofield

6 changes: 3 additions & 3 deletions commands/hmset.md
Expand Up @@ -13,7 +13,7 @@ If `key` does not exist, a new key holding a hash is created.
@examples

@cli
HMSET hash field1 "Hello" field2 "World"
HGET hash field1
HGET hash field2
HMSET myhash field1 "Hello" field2 "World"
HGET myhash field1
HGET myhash field2

4 changes: 2 additions & 2 deletions commands/hset.md
Expand Up @@ -17,6 +17,6 @@ is overwritten.
@examples

@cli
HSET hash field1 "Hello"
HGET hash field1
HSET myhash field1 "Hello"
HGET myhash field1

6 changes: 3 additions & 3 deletions commands/hsetnx.md
Expand Up @@ -17,7 +17,7 @@ yet exist. If `key` does not exist, a new key holding a hash is created. If
@examples

@cli
HSETNX hash field "Hello"
HSETNX hash field "World"
HGET hash field
HSETNX myhash field "Hello"
HSETNX myhash field "World"
HGET myhash field

8 changes: 4 additions & 4 deletions commands/hvals.md
Expand Up @@ -2,7 +2,7 @@

O(N) where N is the size of the hash.

Returns all values of the hash stored at `key`.
Returns all values in the hash stored at `key`.

@return

Expand All @@ -12,7 +12,7 @@ not exist.
@examples

@cli
HSET hash field1 "Hello"
HSET hash field2 "World"
HVALS hash
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HVALS myhash

0 comments on commit 885687f

Please sign in to comment.