Hello, I’m a SDE with over 5 years of experience in Full-stack
development, specializing in creating robust APIs using .NET and functional interfaces using React.js
You could If you want to, but it would be redundant as the expiry date works automatically to ensure it is removed at the set date. Since the expiry date is the same as the one on the token itself, I don't think there is need to check at intervals anymore
Hello, I’m a SDE with over 5 years of experience in Full-stack
development, specializing in creating robust APIs using .NET and functional interfaces using React.js
But then we need to scan the redis store at some intervals to ensure removal of expired tokens.
You could If you want to, but it would be redundant as the expiry date works automatically to ensure it is removed at the set date. Since the expiry date is the same as the one on the token itself, I don't think there is need to check at intervals anymore
Yes, correct. But, my point is the expired tokens would pile up eventually consuming a significant part of the store memory at some point of time.
True, thank you for the feedback.