Examples in using RedisStore in socket.io

前端 未结 4 1931
故里飘歌
故里飘歌 2020-11-29 19:24

I am trying to scale a simple socket.io app across multiple processes and/or servers.

Socket.io supports RedisStore but I\'m confused as to how to use it.

I\

4条回答
  •  抹茶落季
    2020-11-29 19:59

    The difference is, if you have a cluster of node.js instances running, memStore won't work since it's only visible to a single process.

提交回复
热议问题