Skip to main content

Thread safe pylibmc cache backend for django

version downloads license

Default django pylibmc cache backend don’t work correctly using multithread uWSGI or celery worker.

This package uses separate connection for each context (thread or async context) and can be used as direct replacement of django.core.cache.backends.memcached.PyLibMCCache.

Install

pip install django_pylibmc_threadsafe

Configuration

This package has only one additional option - ignore_exc used to suppress all exceptions (behavior used in old django.core.cache.backends.memcached.MemcachedCache backend). All other options are identical to django.core.cache.backends.memcached.PyLibMCCache.

Example configuration:

CACHES = {
        'default': {
                'BACKEND': 'django_pylibmc_threadsafe.PyLibMCCache',
                'LOCATION': '127.0.0.1:11211',
                'KEY_PREFIX': '',
                'OPTIONS': {
                        'binary': True,
                        'ignore_exc': True,
                        'behaviors': {
                                'ketama': True,
                        }
                }
        },

Metadata

Release files for django-pylibmc-threadsafe 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pylibmc-threadsafe 1.0.1
File Size Uploaded Provenance
django_pylibmc_threadsafe-1.0.1.tar.gz 10.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-pylibmc-threadsafe 1.0.1
File Interpreter ABI Platform
django_pylibmc_threadsafe-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / django_pylibmc_threadsafe-1.0.1.tar.gz

Download URL django_pylibmc_threadsafe-1.0.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4291f84b21749ced7058078750a55dd9102033aa6b502b6cdeb23ab53417eaa1
BLAKE2b-256 checksum
How to use checksums
ae7d4150a656765978f0919dba03469eb676526f90046dfac16d3a40e67506d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Release files / django_pylibmc_threadsafe-1.0.1-py3-none-any.whl

Download URL django_pylibmc_threadsafe-1.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9c61e001e12b6e6fc4319f9366d6eaff9b61250b09bf010a274050fe693eda4
BLAKE2b-256 checksum
How to use checksums
61be425721053451538b1c748b5b0de2662f68e911d1e70a485de302e776294e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.9

Security for django-pylibmc-threadsafe 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page