qwerthhusn
V2EX  ›  Redis

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

  •  
  •   qwerthhusn · Nov 19, 2019 · 10599 views
    This topic created in 2399 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   ·   2842 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.