fszaer
V2EX  ›  Redis

ioredis 中的 commands.js 有什么用?

  •  
  •   fszaer · Jul 25, 2015 · 4875 views
    This topic created in 4121 days ago, the information mentioned may be changed or developed.
    webstorm ctrl+左键 redis命令会跳转到这个文件,翻了一下像是命令说明
    但是有些不明所以
    求解惑
    4 replies  •  2015-07-25 23:43:53 +08:00
    scarlex
    scarlex
    Jul 25, 2015
    1
    https://github.com/tj/commander.js
    是TJ写的这个东西,方便写命令行工具
    sox
    sox
    Jul 25, 2015 via Android
    2
    @scarlex 然而你和楼主说得不是一个东西……
    scarlex
    scarlex
    Jul 25, 2015
    3
    @sox 哈哈哈,原来看错了
    luin
    luin
    Jul 25, 2015
    4
    commands.js 是通过 Redis 的 command 命令 (http://redis.io/commands/command) 生成的,用来告知 ioredis 要支持的 Redis 命令列表以及每个命令的属性。命令的属性则用来实现自动添加命名空间和在 Cluster 模式下计算 slot。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1436 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:18 · PVG 07:18 · LAX 15:18 · JFK 18:18
    ♥ Do have faith in what you're doing.