lypdarling
V2EX  ›  Redis

redis 7 所有命令都是原子的吗?

  •  
  •   lypdarling · Oct 30, 2023 via Android · 3577 views
    This topic created in 1100 days ago, the information mentioned may be changed or developed.

    官网有句话

    Redis has a different evolution path in the key-value DBs where values can contain more complex data types, with atomic operations defined on those data types.

    是不是所有 redis 7 的命令都是原子的?这跟 chatgpt 中给的答案不一样

    6 replies  •  2023-10-31 09:15:32 +08:00
    D0n9
    D0n9
    Oct 30, 2023
    1
    chatgpt 的数据是几年前的吧
    nothingistrue
    nothingistrue
    Oct 30, 2023
    2
    redis 本质就一命令行工具,每个命令的执行结果,保持原子性,这是必须的。别说 redis 7 ,redis 正式发布的时候,没报漏洞的时候,命令都是原子的。

    请注意,redis 命令,跟基于 redis 命令的客户端、SDK ,是两码事,后者通常会组合多个命令一起执行,这时候原子性未知。
    realJamespond
    realJamespond
    Oct 30, 2023
    3
    单线程不是原子的?
    dif
    dif
    Oct 30, 2023
    4
    不要过分相信 chatgpt ,这玩意胡扯的时候有模有样的。
    mysunshinedreams
    mysunshinedreams
    Oct 31, 2023
    5
    @dif 这个确实,之前问过一个库的使用问题,全是胡诌
    venomD
    venomD
    Oct 31, 2023
    6
    反问 gpt 一句,你确定吗?或者质疑它,你就会发现它说话和放屁一样
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 12:16 · PVG 20:16 · LAX 04:16 · JFK 07:16
    ♥ Do have faith in what you're doing.