Maybe users will update it at the same time, so sometimes it will get lost.

2009/8/9 Wooble <[email protected]>

>
>
>
> On Aug 9, 4:08 am, keakon <[email protected]> wrote:
> > In the Python SDK version 1.2.4, Memcache incr() and decr() functions
> > can set an initial value for a counter if the key does not exist.
> >
> > But I only find out the initial_value parameter. When I try this
> > enhancement, the cached value seems never expire.
> >
> > For the transaction reason, I don't want to use replace() to set its
> > expiration time, so can Google add expiration time parameter for inrc
> > ()/decr(), or offer a new function to set expiration time?
>
> Why not check if memcache already has the key in it before
> incrementing?
> >
>

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

Reply via email to