Hi Ikai,

Thanks for your answer.


> 1. From what I remember, no. The initial expiry time is the set expiration.

I tested and confirmed. So I simply:

obj = memcache.get(key)
if (obj not null) memcache.put(key, obj, 30min)


> 2. If I understand you correctly, the operation you're looking for is
> probably CAS - Memcache check-and-set. Unfortunately, we don't support this
> operation right now. There are ways to implement similar functionality with
> INCR/DECR (atomic operations).

I want to keep a list of recipients for channel api purpose. Every
time somebody logs in, the list will be fetched from memcache, put the
user inside and push back the list to memcache. Is there any better
way to do this since memcache doesn't support check-and-set?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to