3 ms·
You can promisify redis during initialization and then use redis operations using promises. You can still handle exceptions thrown by JSON.parse/stringify func
by partycoder 10y ago
You can promisify redis during initialization and then use redis operations using promises.
You can still handle exceptions thrown by JSON.parse/stringify functions. Otherwise you can document that your functions are going to throw. (jsdoc: @throws)
You cannot assume a specific redis setup. If there's an intended redis setup then specify it in the README file.
Add an inline comment around your debugging code, e.g: (// FIXME: Do not check-in), so you can remove it while double-checking what you are committing.