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 want to use KV to store user sessions; they will expire after 24 hours
awaitsession.put(key,value,{ttl: "24h"});
In the description of the ttl property, it says, 'Note that for this option to work, the KvBucket must have the markerTTL option.' But I can't understand how it works or what value I should set, even after reading all the related pull requests
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use KV to store user sessions; they will expire after 24 hours
In the description of the
ttl
property, it says, 'Note that for this option to work, the KvBucket must have the markerTTL option.' But I can't understand how it works or what value I should set, even after reading all the related pull requestsBeta Was this translation helpful? Give feedback.
All reactions