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
It is not possible to directly expire items in list, sets, or zsets.
You need to implement a mechanism to be notified when the master item expires, so that you can maintain the corresponding sets accordingly.
See the answer to this question, I think it applies to your use case (replace session by id, and user by tag):
Redis, session expiration, and reverse lookup