I have an ordered set with key Z, and values:
1 "a"
4 "b"
3 "c"
In addition, I've keys a,b,c that are set to expire after varying time.
I want to find the highest ranking value in Z such that the value as a key has already expired. Is there a clean way to do this?