The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version |
Location |
Description |
Submitted By |
Date submitted |
Date corrected |
Printed, PDF, ePub |
Page 27
Third section |
The code snippet under the third section "Implementing the server side code" has the following error.
var http = require('http'),
io = require('socket.io'),
redis = require('redis'),
rc = redis.createClient();
the require ('socket.io') should be refactored to look like this
require('socket.io')(), as the former one produces the following error.
var socketio = io.listen(server);
^
TypeError: io.listen is not a function
Note from the Author or Editor: While this is technically correct in the present day, back when the book was published, the syntax was correct. Recent versions of the library mentioned (Socket.io) have changed how it works and should be called.
Unsure about what to do here. At this point, the book could see a technical revision to make sure code snippets are up to date, and to add on new Redis functionality. Up to you folks at O'Reilly whether you think this is worth it.
|
mohaned tarek |
Apr 14, 2021 |
|
Printed, PDF, ePub |
Page 58
Netherlands |
Hello O'Reilly,
I found a typographical error on page 58 of the second edition of the Redis Cookbook.
Specifically, the sentence reads: "sharding is a useful tecnique for scaling your application database when it no longer fits in a single server"
Here, "tecnique" should be "technique"
For a visual explanation, please see the following link: https://www.dropbox.com/s/j7e59tvc905dfdt/redis-cookbook-tecnique.jpg?dl=0
Kind Regards,
Kerim Satirli
Note from the Author or Editor: The reader is correct - page 58 should, in fact, read "technique", rather than "tecnique".
|
Kerim Satirli |
Apr 21, 2015 |
|
Printed, PDF, ePub, Mobi, , Other Digital Version |
Page 39
"clear" function |
The clear method has two errors. It is listed as:
def clear(queue_name)
$redis.del("queues", "queue#{queue_name}")
end
The current version deletes both the set and queue hash instead of just clearing the hash, AND names the queue hash incorrectly (missing a :).
it should read
def clear(queue_name)
$redis.del("queue:#{queue_name}")
end
Note from the Author or Editor: As said by the reader, the set shouldn't be deleted and the hash name is wrong. The method should read:
def clear(queue_name)
$redis.del("queue:#{queue_name}")
end
|
Fr?d?ric G. Marand |
Apr 09, 2013 |
|
Printed, PDF, ePub, Mobi, , Other Digital Version |
Page 7
United States |
The Solution paragraph and the first paragraph of the Discussion are identical.
Note from the Author or Editor: The first paragraph of Discussion should be removed.
|
Gordon Dickens |
Aug 24, 2011 |
|