You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to cache an item with strict expiration. By this I mean that if I read and update an item the cache doesnt get a new expiration. Currently if I set an item that already exists I need to set a new expiration. However I want the item to continue with the same expiration. This is useful for caching OAuth access tokens.
This could be done in several ways. One could to allow the end developer to access the remaining expiration and exact expiration date so they can reset with a new remaining expiration time. But you can also add new methods to the item to facilitate this.
One thing though is that inserting an item with 0 as expiration. How would that work?
The text was updated successfully, but these errors were encountered:
I am trying to cache an item with strict expiration. By this I mean that if I read and update an item the cache doesnt get a new expiration. Currently if I set an item that already exists I need to set a new expiration. However I want the item to continue with the same expiration. This is useful for caching OAuth access tokens.
This could be done in several ways. One could to allow the end developer to access the remaining expiration and exact expiration date so they can reset with a new remaining expiration time. But you can also add new methods to the item to facilitate this.
One thing though is that inserting an item with 0 as expiration. How would that work?
The text was updated successfully, but these errors were encountered: