darylc
V2EX  ›  Redis

关于 redis 的 sdshdr5,我有点疑问

  •  
  •   darylc · Aug 29, 2019 · 12904 views
    This topic created in 2455 days ago, the information mentioned may be changed or developed.

    传送门: https://segmentfault.com/a/1190000017450295
    文章首先否定了 sdsnewlen 这个函数肯定不会产生 sdshdr5 类型的 sds,最后说在 sdsdup 中会产生 sdshdr5 的类 型,但是我翻源码视乎 sdsdup 直接调用的 sdsnewlen 函数。
    注意:文章说用的 Redis5,我从 Redis3.2 到 Redis5 都看了
    所以 sdshdr5 到底用没用啊!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 05:37 · PVG 13:37 · LAX 22:37 · JFK 01:37
    ♥ Do have faith in what you're doing.