qwerthhusn
V2EX  ›  Redis

redis-cli 执行 set a "你好",执行 strlen a 得到几???

  •  
  •   qwerthhusn · Nov 19, 2019 · 10593 views
    This topic created in 2394 days ago, the information mentioned may be changed or developed.

    A. 2 B. 4 C. 6 D. 8

    别去敲命令

    你真的了解 redis 的“字符串”?

    1 replies    2020-02-19 21:21:25 +08:00
    maxint
        1
    maxint  
       Feb 19, 2020
    这和你用的客户端有关,你的客户端把『你好』编码成几个字节就是几个字节
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   953 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:53 · PVG 05:53 · LAX 14:53 · JFK 17:53
    ♥ Do have faith in what you're doing.