I was fixing my little helper function to behave more like Sean's and I 
think I've found a bug in locmem. Could you please take a look at this:

>>> cache
<django.core.cache.backends.locmem.LocMemCache object at 0x0000000004B077B8>
>>> cache.set('a', 1)
>>> cache.set('b', 2, None)
>>> cache.get('a')
1
>>> cache.get('b')
2
>>> cache.has_key('a')
True
>>> cache.has_key('b')
False

Either I'm missing something or has_key() is not working correctly for keys 
without expiration time.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/b2e0648c-5e8d-4d2e-a899-b354bf4af58f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to