TTL for a set member

后端 未结 3 1762
北荒
北荒 2021-01-30 01:54

Is it possible in Redis to set TTL (time to live) not for a specific key, but for a member for a set?

I am using a structure for tags proposed by Redis documentation - t

3条回答
  •  无人共我
    2021-01-30 02:48

    You can not expire items in a list directly, but it's possible to register a lua script in your redis server and add this functionality to redis. Redis Expiration based on value

提交回复
热议问题