We have approx 1 million keys in CB and each key has expiry time of 10 days. Basically after every 10 days we run a schedular to re-insert data in CB for these 1 million keys.
Out of these there are approx 0.5 million keys which are not used. There is no way to identify which keys will be used and which will not.
I have checked if there is a way to define 2 TTL for a key.
- Delete record after fixed certain time period. (expiry)
- Delete record if key not used for certain time period
Is there some way to delete these unused keys.