I am using Couchbase server for session management with Java SDK client, I have one bucket for session storage.
Currently I am using Time to Live on each document to set expiration time for each session. I have a new requirement where I need to set the session to expire after 120 second but if the session is updated (touched) it will be extended for another 120 seconds, after 24 hours the session should be forced to expire.
How can I configure all Bucket documents to expire (after 24 hours) and keep current session document to expire after 120 seconds?