Permalink
Browse files

More grammar editing.

  • Loading branch information...
1 parent 34ff4c1 commit 6e49a938ee98540fe6a09bf00a7acd36a5166d05 @ShawnMilo ShawnMilo committed Jul 9, 2012
Showing with 13 additions and 13 deletions.
  1. +5 −5 commands/bitcount.md
  2. +8 −8 commands/bitop.md
View
@@ -8,7 +8,7 @@ Like for the `GETRANGE` command start and end can contain negative values in
order to index bytes starting from the end of the string, where -1 is the last
byte, -2 is the penultimate, and so forth.
-Non existing keys are treated as empty strings, so the command will return zero.
+Non-existent keys are treated as empty strings, so the command will return zero.
@return
@@ -25,13 +25,13 @@ BITCOUNT mykey 0 0
BITCOUNT mykey 1 1
```
-## Pattern: real time metrics using bitmaps
+## Pattern: real-time metrics using bitmaps
-Bitmaps are a very space efficient representation of certain kinds of
+Bitmaps are a very space-efficient representation of certain kinds of
information.
-One example is a web application that needs the history of user visits, so that
+One example is a Web application that needs the history of user visits, so that
for instance it is possible to determine what users are good targets of beta
-features, or for any other purpose.
+features.
Using the `SETBIT` command this is trivial to accomplish, identifying every day
with a small progressive integer.
View
@@ -20,14 +20,14 @@ When an operation is performed between strings having different lengths, all the
strings shorter than the longest string in the set are treated as if they were
zero-padded up to the length of the longest string.
-The same holds true for non-existing keys, that are considered as a stream of
+The same holds true for non-existent keys, that are considered as a stream of
zero bytes up to the length of the longest string.
@return
@integer-reply
-The size of the string stored into the destination key, that is equal to the
+The size of the string stored in the destination key, that is equal to the
size of the longest input string.
@examples
@@ -43,11 +43,11 @@ GET dest
`BITOP` is a good complement to the pattern documented in the `BITCOUNT` command
documentation.
-Different bitmaps can be combined in order to obtain a target bitmap where to
-perform the population counting operation.
+Different bitmaps can be combined in order to obtain a target bitmap where
+the population counting operation is performed.
See the article called "[Fast easy realtime metrics using Redis
-bitmaps][hbgc212fermurb]" for an interesting use cases.
+bitmaps][hbgc212fermurb]" for a interesting use cases.
[hbgc212fermurb]: http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps
@@ -56,6 +56,6 @@ bitmaps][hbgc212fermurb]" for an interesting use cases.
`BITOP` is a potentially slow command as it runs in O(N) time.
Care should be taken when running it against long input strings.
-For real time metrics and statistics involving large inputs a good approach is
-to use a slave (with read-only option disabled) where to perform the bit-wise
-operations without blocking the master instance.
+For real-time metrics and statistics involving large inputs a good approach is
+to use a slave (with read-only option disabled) where the bit-wise
+operations are performed to avoid blocking the master instance.

0 comments on commit 6e49a93

Please sign in to comment.