LeegoYih
V2EX  ›  Redis

Redis 支持 Hash 字段单独设置过期时间

  •  
  •   LeegoYih ·
    yihleego · Jun 7, 2024 · 4892 views
    This topic created in 708 days ago, the information mentioned may be changed or developed.

    Redis 7.4-rc1 引入了 9 个新命令:

    • HEXPIRE and HPEXPIRE:设置秒级和毫秒级生存时间
    • HEXPIREAT and HPEXPIREAT:设置秒级和毫秒级 UNIX 过期时间戳
    • HPERSIST:移除过期时间
    • HEXPIRETIME and HPEXPIRETIME:获取秒级和毫秒级 UNIX 过期时间戳
    • HTTL and HPTTL:获取秒级和毫秒级生存时间

    https://github.com/redis/redis/releases/tag/7.4-rc1

    这么多年了,终于来了

    3 replies    2024-06-07 10:14:28 +08:00
    awalkingman
        1
    awalkingman  
       Jun 7, 2024
    等到生产用,得等好多年了
    6HWcp545hm0RHi6G
        2
    6HWcp545hm0RHi6G  
       Jun 7, 2024
    赶快移植到公司的内部低版本上
    Maboroshii
        3
    Maboroshii  
       Jun 7, 2024
    下一个项目看能不能用得上吧 ...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2962 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 05:58 · PVG 13:58 · LAX 22:58 · JFK 01:58
    ♥ Do have faith in what you're doing.