Let's start practicing using the redis key-value store from our node application. First require the redismodule, and then create a redis client that we can use to call commands on our redis server. Use the client to set the name key to your name. var…
个人翻译 原文:https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/ The Node.js Event Loop, Timers, and process.nextTick() What is the Event Loop? 什么是事件循环圈? The event loop is what allows Node.js to perform non-blocking I/O operations — despite…
Node的包管理器 JavaScript缺少包结构的定义,而CommonJS定义了一系列的规范.而NPM的出现则是为了在CommonJS规范的基础上,实现解决包的安装卸载,依赖管理,版本管理等问题. CommonJS是一个致力于构建统一的JS生态系统,它可以兼容web服务器.桌面应用.命令行应用.浏览器等.它定义了各种开发的规范和API不仅仅模块化相关的规范)官网的说明: a group with a goal of building up the JavaScript ecosystem fo…