Check out the touch command here: 
https://github.com/memcached/memcached/blob/master/doc/protocol.txt

It lets you update expiration time and should work for your purpose.

~Ryan (mobile)

> On Jun 16, 2014, at 3:22 PM, Caroline Beltran <[email protected]> 
> wrote:
> 
> I am thinking about using Memcache and have read that you can set an 
> expiration time for your items but an expiry is not a good option for storing 
> sessions keys (in my opinion) because I don't want sessions to expire after a 
> pre-specified time such as 30 minutes.
> 
> Instead, I want sessions to expire 30 minutes after the last session 
> activity. So for example, I want the session to remain in cache for the 
> duration of the user's visit end 30 minutes after the web browser is closed.
> 
> 
> Please advise if Memcache would allow me to do this. Thank you.
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to