gpt4 book ai didi

hash - 如何在redis中 "EXPIRE" "HSET"子键?

转载 作者:可可西里 更新时间:2023-11-01 11:23:24 25 4
gpt4 key购买 nike

我需要使 redis 散列中超过 1 个月的所有键过期。

最佳答案

This is not possible , 为了 keeping Redis simple .

Quoth Antirez,Redis 的创造者:

Hi, it is not possible, either use a different top-level key for that specific field, or store along with the filed another field with an expire time, fetch both, and let the application understand if it is still valid or not based on current time.

关于hash - 如何在redis中 "EXPIRE" "HSET"子键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56965082/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com