you can set 0 or not set time - it mean maximum lifetime (1 month). If you set full month - it can understand as timestamp in the past and value expire immendantly. Try set 29 days or 29 days 23 hours 59 minutes.
2011/11/5 Andrius A <andriu...@gmail.com> > sorry, correct code: > > memcache.set('myEntity', myData, time=2592000) # returns True > memcache.get('myEntity') # returns None > > memcache.set('myEntity', myData, time=1209600) # returns True > memcache.get('myEntity') # returns entity data > > On 5 November 2011 17:27, Andrius A <andriu...@gmail.com> wrote: > >> even if specifying keyword it's not setting it: >> >> memcache.set('myEntity', myData, 2592000) # returns True >> memcache.get('myEntity') # returns None >> >> memcache.set('myEntity', myData, 1209600) # returns True >> memcache.get('myEntity') # returns entity data >> >> Don't know really what's the logic here, maybe when time value is high it >> thinks this is a unix time stamp 2592000 = Sat, 31 Jan 1970 00:00:00 >> GMT, and makes data to expiry straight away? If so, documentation need to >> say that, because it is not clear! >> >> On 5 November 2011 16:32, pdknsk <pdk...@googlemail.com> wrote: >> >>> I haven't tried, but it probably doesn't work as a positional >>> argument, only as a keyword argument (time=1). >>> >>> -- >>> 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-appengine@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. >>> >>> >> > -- > 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-appengine@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. > -- С уважением, Кулин Тимофей. Телефон: +7 (4852) 974793 ICQ: 114902104 email: timo...@koolin.ru Blog: http://timofey.koolin.ru -- 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-appengine@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.