如何从socket-io-redis获取redis商店客户端?(How do i get the redis store client from socket-io-redis?)
socket-io-redis使用redis进行连接,我想知道如何从库中获取redis存储客户端,以便我可以使用该客户端在redis中存储键值对。
var redis = require('socket.io-redis'); var socketio = require('socket.io'); io = socketio.listen(app); io.adapter(redis({ host: 'localhost', port: 6379 }));
我正在使用节点集群模型,所以我不想创建一个新的redis客户端,因为我已经有了。
socket-io-redis use redis inside to connect, I wonder how can i get the redis store client from the library so that i can use that client to store key value pairs in redis.
var redis = require('socket.io-redis'); var socketio = require('socket.io'); io = socketio.listen(app); io.adapter(redis({ host: 'localhost', port: 6379 }));
I am using node cluster model, So i do not want to create a new redis client as i already have one.
原文:
最满意答案
试试这个链接( http://www.eclipse.org/downloads/moreinfo/custom.php )它应该包含所谓的Eclipse Platform Runtime Binaries,它是最简约的可用包。
try this link (http://www.eclipse.org/downloads/moreinfo/custom.php) It should contain what is called a Eclipse Platform Runtime Binaries which is the most minimalist package available.
相关问答
更多-
android 3d游戏开发 所需要的软件[2023-10-23]
eclipse -
安卓应用程序开发使用哪个开发工具最好?[2022-11-21]
eclipse -
安卓手机编程现在用什么软件?并求下载地址。[2022-05-06]
eclipse -
有用的Eclipse功能?(Useful Eclipse features? [closed])[2023-07-30]
我最常用的功能是 ctrl + 1快速修复/拼写检查 打开文件 ctrl + shift + t通过classname加载类文件 ctrl + shift + r通过文件名加载任何文件 匹配是在类/文件名的开始进行的。 启动您的搜索模式与*来搜索文件名/类名的任何地方。 格式化 ctrl + shift + f格式化源文件(在Window |首选项| java | code style | formatter中设置格式化样式) ctrl + shift + o组织导入 生成的代码 alt + s , r生成 ... -
上次我尝试了Eclipse(大约一年前),我发现它很慢。 例如,自动完成将需要几秒钟才能显示可能的匹配列表。 用户界面的其他元素的响应也很差。 Last time I tried Eclipse (about a year ago), I found it to be dog slow. Autocomplete would take multiple seconds to bring up the list of possible matches, for instance. Other elements ...
-
我通常使用dropins在多个Eclipse安装之间共享插件。 请参阅这篇文章 ,了解Eclipse中的dropins目录。 您可以使用一些不同的结构将插件放置到Dropins文件夹中 - 我更喜欢按域分隔: /dropins/exampleA/plugins/… /dropins/exampleB/plugins/… /dropins/exampleC/eclipse/features/… /dropins/exampleC/eclipse/plugins/… 但是我更喜欢通过eclipse.ini引用 ...
-
插件在eclipse中添加“自动构建”和“构建所有”的功能(Plugin to add features to “build automatically” and “build all” in eclipse)[2022-04-08]
您可以使用增量项目构建器。 使用org.eclipse.core.resources.builders扩展点来定义构建器。 示例构建器(如文档中所示):... -
我不知道为什么装置会卡在29%。 它可能是您的防火墙/代理问题,或者它可能是存档中的损坏的元数据。 值得关注Xpand邮件列表或论坛。 但是,如果要安装它,可以将存档解压缩到dropins文件夹中。 除非Xpand需要任何第三方罐子,否则这将有效。 I don't know why the installation is getting stuck at 29%. It may be a firewall/proxy problem on your end, or it may be corrupt met ...
-
如何为Eclipse 3.8.2安装PDE eclipse插件(How do I install the PDE eclipse plugin for Eclipse 3.8.2)[2022-11-19]
这是一个使用“安装新软件”安装的安装库。 单击“可用软件”对话框中的“添加...”按钮。 在弹出的“添加存储库”对话框中,单击“存档”并选择下载(如果已扩展下载,则使用“本地”)。 如果您收到消息,指出存在“没有分类的项目”,则可能需要取消选中“按类别分组项目”。 请注意,许多Eclipse安装都包含PDE。 That is an install repository which you install using 'Install New Software'. Click the 'Add...' but ... -
试试这个链接( http://www.eclipse.org/downloads/moreinfo/custom.php )它应该包含所谓的Eclipse Platform Runtime Binaries,它是最简约的可用包。 try this link (http://www.eclipse.org/downloads/moreinfo/custom.php) It should contain what is called a Eclipse Platform Runtime Binaries whi ...