I agree having 2 params without typing here isn't ideal. I more was just talking about the self-consistency(since you had referred to it too). I don't mind updating both this and the TTLCache to use the duration class instead? Might be the right answer here...