Skip to content

Commit 5dc91c9

Browse files
author
Karl Seguin
committed
Merge remote branch 'origin/master'
2 parents 69c5888 + b81fca1 commit 5dc91c9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

en/redis.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ I do feel that some developers have lost touch with how little space data can ta
148148

149149
Redis did add support for virtual memory. However, this feature has been seen as a failure (by Redis' own developers) and its use has been deprecated.
150150

151-
(On a side note, that 5.5MB file of Shakespeare's complete works can be compressed down to roughly 2MB. Redis doesn't do auto-compression but, since it treats values as bytes, there's no reason you can't trade processing time for RAM by compressing/decompressing the data yourself.
151+
(On a side note, that 5.5MB file of Shakespeare's complete works can be compressed down to roughly 2MB. Redis doesn't do auto-compression but, since it treats values as bytes, there's no reason you can't trade processing time for RAM by compressing/decompressing the data yourself.)
152152

153153
### Putting It Together
154154

@@ -166,7 +166,7 @@ It's important to understand this aspect of Redis because it impacts how you int
166166

167167
Although we barely got to play with Redis, we did cover a wide range of topics. Don't worry if something isn't crystal clear - like querying. In the next chapter we'll go hands-on and any questions you have will hopefully answer themselves.
168168

169-
The important takeaway from this chapters are:
169+
The important takeaway from this chapter are:
170170

171171
* Keys are strings which identify pieces of data (values)
172172

@@ -376,7 +376,7 @@ Maintenance cost aside, if you are anything like me, you might cringe at the pro
376376

377377
If you actually think about it though, relational databases have the same overhead. Indexes take memory, must be scanned or ideally seeked and then the corresponding records must be looked up. The overhead is neatly abstracted away (and they do a lot of optimizations in terms of the processing to make it very efficient).
378378

379-
Again, having to manually deal with references in Redis in unfortunate. But any initial concerns you have about the performance or memory implications of this should be tested. I think you'll find it a non-issue.
379+
Again, having to manually deal with references in Redis is unfortunate. But any initial concerns you have about the performance or memory implications of this should be tested. I think you'll find it a non-issue.
380380

381381
### Round Trips and Pipelining
382382

@@ -573,7 +573,7 @@ To sort the bugs by severity, from highest to lowest, you'd do:
573573

574574
Redis will substitute the `*` in our pattern (identified via `by`) with the values in our list/set/sorted set. This will create the key name that Redis will query for the actual values to sort by.
575575

576-
Although you can have millions of keys within Redis, I think the above can get a little messy. Thankfully sort can also work on hashes and their fields. Instead of having a bunch of top-level keys you can leverage hashes:
576+
Although you can have millions of keys within Redis, I think the above can get a little messy. Thankfully `sort` can also work on hashes and their fields. Instead of having a bunch of top-level keys you can leverage hashes:
577577

578578
hset bug:12339 severity 3
579579
hset bug:12339 priority 1
@@ -616,7 +616,7 @@ Our last chapter is dedicated to some of the administrative aspects of running R
616616

617617
### Configuration
618618

619-
When you first launched the Redis server, it warned you that the `redis.conf` file could not be found. This file can be used to configure various aspects of Redis. A well documented `redis.conf` file is available for each release of Redis. The sample file contains the default configuration options, so it's useful to both understand what the settings do and what their defaults are. You can find it at <https://github.com/antirez/redis/raw/2.4.6/redis.conf>.
619+
When you first launched the Redis server, it warned you that the `redis.conf` file could not be found. This file can be used to configure various aspects of Redis. A well-documented `redis.conf` file is available for each release of Redis. The sample file contains the default configuration options, so it's useful to both understand what the settings do and what their defaults are. You can find it at <https://github.com/antirez/redis/raw/2.4.6/redis.conf>.
620620

621621
**This is the config file for Redis 2.4.6. You should replace "2.4.6" in the above URL with your version. You can find your version by running the `info` command and looking at the first value.**
622622

@@ -641,7 +641,7 @@ Or you can disable a command by setting the new name to an empty string.
641641

642642
### Size Limitations
643643

644-
As you start using Redis, you might wonder "how many keys can I have?". You might also wonder how many fields can a hash have (especially when you use it to organize your data), or how many elements can lists and sets have? Per instance, the practical limits for all of these is in the hundreds of millions.
644+
As you start using Redis, you might wonder "how many keys can I have?" You might also wonder how many fields can a hash have (especially when you use it to organize your data), or how many elements can lists and sets have? Per instance, the practical limits for all of these is in the hundreds of millions.
645645

646646

647647
### Replication
@@ -678,4 +678,4 @@ Given the number of projects and sites using Redis already, there can be no doub
678678

679679
In a lot of ways, Redis represents a simplification in the way we deal with data. It peels away much of the complexity and abstraction available in other systems. In many cases this makes Redis the wrong choice. In others it can feel like Redis was custom-built for your data.
680680

681-
Ultimately it comes back to something I said at the very start: Redis is easy to learn. There are many new technologies and it can be hard to figure out what's worth investing time into learning. When you consider the real benefits Redis has to offer with its simplicity, I sincerely believe that it's one of the best investments, in terms of learning, that you and your team can make.
681+
Ultimately it comes back to something I said at the very start: Redis is easy to learn. There are many new technologies and it can be hard to figure out what's worth investing time into learning. When you consider the real benefits Redis has to offer with its simplicity, I sincerely believe that it's one of the best investments, in terms of learning, that you and your team can make.

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The book is written in [Markdown](http://daringfireball.net/projects/markdown/)
1414
To generate PDF, Kindle and EPUB formats, download and install [pandoc](http://johnmacfarlane.net/pandoc/), a universal document converter.
1515

1616
## Generating the PDF ##
17-
pandoc includes markdown2pdf to generate the PDF using using a variation of <https://github.com/claes/pandoc-templates>:
17+
pandoc includes markdown2pdf to generate the PDF using a variation of <https://github.com/claes/pandoc-templates>:
1818

1919
#!/bin/sh
2020
paper=a4paper

0 commit comments

Comments
 (0)