gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 05:54:09 24 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/16545321/

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