Fixe #6131 -- Fixed a problem with expired keys in the locmem cache. Based on a patch from sherbang.
Fixe #6131 -- Fixed a problem with expired keys in the locmem cache. Based on a patch from sherbang.

In passing, changed the get() method to use a similar style to has_key() and made add() fractionally faster with the same sort of change (only compute time.time() when we really need it).


git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@6904 bcc190cf-cafb-0310-a4f2-bffc1f526a37

aparo/django-nonrel,FlaPer87/django-nonrel,FlaPer87/django-nonrel,aparo/django-nonrel,aparo/django-nonrel,FlaPer87/django-nonrel