Registry / database / django-bmemcached

django-bmemcached

JSON →
library0.3.0pypypiunverified

A Django cache backend using the bmemcached module (binary protocol with SASL authentication). Current version 0.3.0. Low release cadence; last release in 2015.

pip install django-bmemcached
INSTALL
IMPORT
SIG · DJANGO-BMEMCACHED
D
django-bmemcached
databasepythonv0.3.0
Install
2.5s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BMemcachedCache
from django_bmemcached import BMemcachedCache
from django_bmemcached import BMemcachedCache

Django settings configuration for using bmemcached with authentication.

import os CACHES = { 'default': { 'BACKEND': 'django_bmemcached.memcached.BMemcachedCache', 'LOCATION': [os.environ.get('MEMCACHED_HOST', '127.0.0.1:11211')], 'OPTIONS': { 'username': os.environ.get('MEMCACHED_USER', ''), 'password': os.environ.get('MEMCACHED_PASS', ''), } } }
Debug
Known issues
breakingOPTIONS keys are validated against a whitelist. Unrecognized keys raise InvalidCacheOptions.
fix
Only use keys: 'username', 'password', 'pickleProtocol', 'behaviors', and others listed in the source.
affects: >=0.3.0
deprecatedLibrary is unmaintained since 2015. Does not support modern Django versions (2.x, 3.x, 4.x).
fix
Consider migrating to django-pylibmc or django-corecache.
affects: all
gotchaThe import path in Django CACHES settings must be 'django_bmemcached.memcached.BMemcachedCache', not 'django_bmemcached.BMemcachedCache'.
fix
Use BACKEND: 'django_bmemcached.memcached.BMemcachedCache'.
affects: all
Upgrade
Version history
0.3.0latest on PyPI · released Jan 9, 2020
Audit
Dependencies
python-memcachedrequiredRequired for the backend; bmemcached is a wrapper over it.
djangorequiredCache backend intended for Django projects.
Agent activity
7 hits · last 30 days
node
6
Resources
django-bmemcached — pip install django-bmemcached · libregistry