django1/django/core/cache/backends
Aymeric Augustin 83a416f5e7 Made atomic usable when autocommit is off.
Thanks Anssi for haggling until I implemented this.

This change alleviates the need for atomic_if_autocommit. When
autocommit is disabled for a database, atomic will simply create and
release savepoints, and not commit anything. This honors the contract of
not doing any transaction management.

This change also makes the hack to allow using atomic within the legacy
transaction management redundant.

None of the above will work with SQLite, because of a flaw in the design
of the sqlite3 library. This is a known limitation that cannot be lifted
without unacceptable side effects eg. triggering arbitrary commits.
2013-03-13 15:17:40 +01:00
..
__init__.py Refactored cache from django/core/cache.py into django/core/cache package, with each backend getting a separate module. This keeps things cleaner and uses less memory, because the backend module is only loaded if it's needed. 2006-02-24 06:07:01 +00:00
base.py Fixed #17061 -- Factored out importing object from a dotted path 2013-02-04 16:38:25 +01:00
db.py Made atomic usable when autocommit is off. 2013-03-13 15:17:40 +01:00
dummy.py Fixed #16162. Added timeout arg to `DummyCache.set_many`, for compatiblity with other caches. Thanks to aaugustin for the patch. 2011-09-10 17:09:23 +00:00
filebased.py Replaced many smart_bytes by force_bytes 2012-08-29 11:20:32 +02:00
locmem.py [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
memcached.py Fixed #19810 -- MemcachedCache now uses pickle.HIGHEST_PROTOCOL 2013-02-24 13:56:15 +01:00