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

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

  •  
  •   LeegoYih ·
    yihleego · 11 天前 · 960 次点击

    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 条回复    2024-06-07 10:14:28 +08:00
    awalkingman
        1
    awalkingman  
       11 天前
    等到生产用,得等好多年了
    xierqii
        2
    xierqii  
       11 天前
    赶快移植到公司的内部低版本上
    Maboroshii
        3
    Maboroshii  
       11 天前
    下一个项目看能不能用得上吧 ...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3029 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 12:06 · PVG 20:06 · LAX 05:06 · JFK 08:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.