V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lypdarling
V2EX  ›  Redis

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

  •  
  •   lypdarling · 180 天前 via Android · 2001 次点击
    这是一个创建于 180 天前的主题,其中的信息可能已经有所发展或是发生改变。

    官网有句话

    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 条回复    2023-10-31 09:15:32 +08:00
    D0n9
        1
    D0n9  
       180 天前
    chatgpt 的数据是几年前的吧
    nothingistrue
        2
    nothingistrue  
       180 天前
    redis 本质就一命令行工具,每个命令的执行结果,保持原子性,这是必须的。别说 redis 7 ,redis 正式发布的时候,没报漏洞的时候,命令都是原子的。

    请注意,redis 命令,跟基于 redis 命令的客户端、SDK ,是两码事,后者通常会组合多个命令一起执行,这时候原子性未知。
    realJamespond
        3
    realJamespond  
       180 天前
    单线程不是原子的?
    dif
        4
    dif  
       180 天前
    不要过分相信 chatgpt ,这玩意胡扯的时候有模有样的。
    mysunshinedreams
        5
    mysunshinedreams  
       179 天前
    @dif 这个确实,之前问过一个库的使用问题,全是胡诌
    venomD
        6
    venomD  
       179 天前
    反问 gpt 一句,你确定吗?或者质疑它,你就会发现它说话和放屁一样
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2990 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.