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 <[email protected]> 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 <[email protected]> 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 [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.
>>
>>
>

-- 
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