| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
the highest pickling protocol.
|
|
|
|
| |
error to a system check.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Took advantage of the new database adapters and converters.
|
|
|
|
|
| |
This mirrors convert_xxxfield_value nicely, taking advantage of the
adapter/converter terminology which is commonly used by DB-API modules.
|
|
|
|
| |
Refs #23820.
|
| |
|
|
|
|
| |
BaseCache backend.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow_migrate().
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.
This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.
Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.
Refs 22583.
|
| |
|
|
|
|
|
|
| |
backwards compatibility shim.
Per deprecation timeline; refs #21147.
|
|
|
|
| |
timeline; refs #21012.
|
|
|
|
|
|
|
|
|
|
| |
a failure to set.
Default Memcached configuration allows for a maximum object of 1MB and
will fail to set the key if it is too large. The key will be deleted from
memcached if it fails to be set. This is needed to avoid an issue with
cache_db session backend using the old value stored in memcached, instead
of the newer value stored in the database.
|
|
|
|
| |
documented
|
| |
|
|
|
|
| |
timeout value.
|
|
|
|
|
|
|
| |
infinite cache expiry
Refactored cache expiry logic for Locmemcache to make consistent across
all places where accessed, and correctly handle None as expiry time.
|
|
|
|
|
|
|
| |
timeouts
cache.add() incorrectly succeeded when there was an existing key
with an infinite (None) timeout.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
|
|
|
|
|
|
|
|
|
| |
keys as the default.
This feature allows the default `TIMEOUT` Cache argument to be set to `None`,
so that cache instances can set a non-expiring key as the default,
instead of using the default value of 5 minutes.
Previously, this was possible only by passing `None` as an argument to
the set() method of objects of type `BaseCache` (and subtypes).
|
|
|
|
|
|
| |
in favor of import_string().
Thanks Aymeric Augustin for the suggestion and review.
|
|
|
|
|
|
| |
This commit touchs various parts of the code base and test framework. Any
found usage of opening a cursor for the sake of initializing a connection
has been replaced with 'ensure_connection()'.
|
| |
|
|
|
|
|
|
| |
This only affects the new cache api and not the deprecated get_cache.
Refs #21012
|
|
|
|
| |
Actually comitted the code now :þ
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks Curtis Malony and Florian Apolloner.
Squashed commit of the following:
commit 3380495e93f5e81b80a251b03ddb0a80b17685f5
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 14:18:07 2013 +0100
Looked up the template_fragments cache at runtime.
commit 905a74f52b24a198f802520ff06290a94dedc687
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 14:19:48 2013 +0100
Removed all uses of create_cache.
Refactored the cache tests significantly.
Made it safe to override the CACHES setting.
commit 35e289fe9285feffed3c60657af9279a6a2cfccc
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 12:23:57 2013 +0100
Removed create_cache function.
commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date: Sat Nov 23 12:04:52 2013 +0100
Updated docs to describe a simplified cache backend API.
commit ee7eb0f73e6d4699edcf5d357dce715224525cf6
Author: Curtis Maloney <curtis@tinbrain.net>
Date: Sat Oct 19 09:49:24 2013 +1100
Fixed #21012 -- Thread-local caches, like databases.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Safer for use in multiprocess environments
* Better random culling
* Cache files use less disk space
* Safer delete behavior
Also fixed #15806, fixed #15825.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
cache backends.
The precision of time.time() is OS specific and it is possible for the
resolution to be low enough to allow reading a cache key previously set
with a timeout of 0.
|
|
|
|
|
|
|
|
|
|
| |
value
DatabaseCache uses raw cursors to bypass the ORM. This prevents it from
being used by database backends that require special handling of datetime
values.
There is no easy way to test this, so no tests added.
|
| |
|
|
|
|
| |
Thanks joseph at vertstudios.com for the suggestion.
|
|
|
|
| |
unused imports and local variables
|
| |
|
|
|
|
| |
comprehensions.
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
| |
This was a shim for pre-Python 2.7 support.
|
|
|
|
| |
Python 3.
|
|
|
|
| |
try/except blocks.
|
|
|
|
|
|
|
| |
self._lock.reader()/writer() blocks
Additionaly added pickled=None initially and check for none before
returning in get
|