I think I'll follow suit and also stick with prefixing memcache keys with my
own "namespaces" until there's more info on the real namespaces.


On 17 February 2010 14:53, Eli Jones <eli.jo...@gmail.com> wrote:

> Nickolas,
>
> If you poke around in the google/appengine/api/memcache folder and look at
> the __init__.py file, you see in the comments that namespace is just a
> string.
>
> Sometimes poking around in the .py files can clarify some things.. though,
> it won't tell you if something will change of course.
>
> Since I'm not clear on what namespace ultimately does, I just stick to
> setting memcache keynames = Model.kind() + Model.key().name() since that
> should be unique for each application.
>
>
> On Tue, Feb 16, 2010 at 10:22 PM, Nickolas Daskalou <n...@daskalou.com>wrote:
>
>>
>> On 17 February 2010 14:14, Ikai L (Google) <ika...@google.com> wrote:
>>
>>> The implementation isn't going to change if it works
>>
>>
>> Is there a list of what's currently working (and hence won't change), and
>> what's not working (and hence may change in the future)?
>>
>> Also, is the namespace simply a string (without restrictions)?
>>
>> Nick
>>
>>
>>
>>> - it's just that certain methods involving namespaces return unexpected
>>> results. For instance, grab_tail seems to be working incorrectly, pulling
>>> from the global LRU rather than the nested namespace LRU.
>>>
>>>
>>> On Tue, Feb 16, 2010 at 7:01 PM, Nickolas Daskalou <n...@daskalou.com>wrote:
>>>
>>>> Thanks for that explanation Ikai.
>>>>
>>>> Since the details are still being worked out, should we not use the
>>>> namespace argument, in case its implementation suddenly changes?
>>>>
>>>> If it is indeed safe to use now (and the namespace argument actually
>>>> does "work" and is not just there as a placeholder), what is the data type?
>>>> A string?
>>>>
>>>>
>>>>
>>>> On 17 February 2010 08:57, Ikai L (Google) <ika...@google.com> wrote:
>>>>
>>>>> Nickolas, I thought the same thing when I first read about namespaces.
>>>>> As it turns out, namespaces with App Engine's memcache instance are not 
>>>>> the
>>>>> same thing as prefixes. They are actual namespaces with their own LRU in
>>>>> addition to the global LRU. The details are still being worked out, 
>>>>> though,
>>>>> but the idea is that you'll have features like constant time flushing of a
>>>>> namespace and nested namespaces, something you can't do with the
>>>>> distribution of Memcached that is available on the internet. This version 
>>>>> of
>>>>> Memcache was necessary to ensure that users could not stomp on other 
>>>>> users'
>>>>> memcache data.
>>>>>
>>>>> On Mon, Feb 15, 2010 at 8:11 PM, Nickolas Daskalou 
>>>>> <n...@daskalou.com>wrote:
>>>>>
>>>>>>  What's the difference between key_prefix and namespace when using the
>>>>>> Memcache.*_multi() functions?
>>>>>>
>>>>>> Maybe my understanding of namespace is wrong, but I thought namespace
>>>>>> was basically a (string) prefix on the cache key.
>>>>>>
>>>>>> --
>>>>>> 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<google-appengine%2bunsubscr...@googlegroups.com>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Ikai Lan
>>>>> Developer Programs Engineer, Google App Engine
>>>>> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>>>>>
>>>>> --
>>>>> 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<google-appengine%2bunsubscr...@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-appeng...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> Ikai Lan
>>> Developer Programs Engineer, Google App Engine
>>> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>>>
>>> --
>>> 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<google-appengine%2bunsubscr...@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-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@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-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@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-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