summaryrefslogtreecommitdiff
path: root/django/utils/synch.py
AgeCommit message (Collapse)Author
2018-01-24Fixed #28977 -- Changed local-memory cache to use LRU culling.Grant Jenks
LRU culling turns every read into a kind of write to the cache: cache keys are moved to the first position in the OrderedDict when they are retrieved. The RWLock which permitted multiple readers while prioritizing a single writer is obsolete since all accesses are now writes.
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2015-01-28Removed threading fallback imports.Tim Graham
Django imports threading in many other places without fallback.
2013-10-22Fixed E221 pep8 warnings.Tim Graham
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-27Clean up the the locmem cache backend and utils.synch by using context ↵Alex Gaynor
managers. Puch prettier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-25Removed a bunch of annoying trailing whitespace.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-07Fixed #2258 -- Accounted for the case of a missing threading library in ↵Adrian Holovaty
django.utils.synch. Thanks, scott@clued-in.co.uk git-svn-id: http://code.djangoproject.com/svn/django/trunk@3286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25Added "locmem" and "file" cache backends. "locmem" is a thread-safe ↵Jacob Kaplan-Moss
local-memory cache, and "file" is a file-based cache. This refs #515; much thanks to Eugene Lazutkin! git-svn-id: http://code.djangoproject.com/svn/django/trunk@686 bcc190cf-cafb-0310-a4f2-bffc1f526a37