Redis sessions

The majority of Express applications in production that require session support will probably use Redis, so making Redis performant is quite important. Our Redis client, node-redis, uses a pure JavaScript parser; the node-redis documentation suggests using an alternative module for parsing.

Hiredis is a binding to the official Hiredis C library; it's non-blocking and fast. If you install hiredis, node-redis will use it by default. Let's install Hiredis on vision-core:

cd vision-core
npm install hiredis redis --save
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.131.36.247