I think this library is great and I've been making use of it in my new Adonis app. However, I think the TTL terms are confusing and I suggest you rename them. Instead of Grace, call it "physical TTL" and the regular TTL, call it "logical TTL". That way its clear what you are setting with each TTL. Also, I'd have some sort of check in the code that the "physical TTL" is always greater than the "logical TTL", because there is no point of having physical TTL less then logical, as there will be nothing to fetch during grace if the logical TTL expires, as the physical will be expired also. Thanks.
I think this library is great and I've been making use of it in my new Adonis app. However, I think the TTL terms are confusing and I suggest you rename them. Instead of Grace, call it "physical TTL" and the regular TTL, call it "logical TTL". That way its clear what you are setting with each TTL. Also, I'd have some sort of check in the code that the "physical TTL" is always greater than the "logical TTL", because there is no point of having physical TTL less then logical, as there will be nothing to fetch during grace if the logical TTL expires, as the physical will be expired also. Thanks.