django-pylibmc-threadsafe


Namedjango-pylibmc-threadsafe JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryThread safe pylibmc cache pbackend for django
upload_time2023-01-28 08:40:02
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT
keywords pylibmc django
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ============================================
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
-------

.. code:: bash

	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:

.. code-block:: python

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

.. |version| image:: https://badge.fury.io/py/django-pylibmc-threadsafe.svg
	:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/

.. |downloads| image:: https://img.shields.io/pypi/dw/django-pylibmc-threadsafe.svg
	:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/

.. |license| image:: https://img.shields.io/pypi/l/django-pylibmc-threadsafe.svg
	:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-pylibmc-threadsafe",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "pylibmc,django",
    "author": "",
    "author_email": "Miroslav Bend\u00edk <miroslav.bendik@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ae/7d/4150a656765978f0919dba03469eb676526f90046dfac16d3a40e67506d7/django_pylibmc_threadsafe-1.0.1.tar.gz",
    "platform": null,
    "description": "============================================\nThread safe pylibmc cache backend for django\n============================================\n\n|version| |downloads| |license|\n\nDefault django pylibmc cache backend don't work correctly using multithread\nuWSGI or celery worker.\n\nThis package uses separate connection for each context (thread or async context)\nand can be used as direct replacement of\n``django.core.cache.backends.memcached.PyLibMCCache``.\n\nInstall\n-------\n\n.. code:: bash\n\n\tpip install django_pylibmc_threadsafe\n\nConfiguration\n-------------\n\nThis package has only one additional option - ``ignore_exc`` used to suppress all\nexceptions (behavior used in old\n``django.core.cache.backends.memcached.MemcachedCache`` backend). All other\noptions are identical to ``django.core.cache.backends.memcached.PyLibMCCache``.\n\nExample configuration:\n\n.. code-block:: python\n\n\tCACHES = {\n\t\t'default': {\n\t\t\t'BACKEND': 'django_pylibmc_threadsafe.PyLibMCCache',\n\t\t\t'LOCATION': '127.0.0.1:11211',\n\t\t\t'KEY_PREFIX': '',\n\t\t\t'OPTIONS': {\n\t\t\t\t'binary': True,\n\t\t\t\t'ignore_exc': True,\n\t\t\t\t'behaviors': {\n\t\t\t\t\t'ketama': True,\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n.. |version| image:: https://badge.fury.io/py/django-pylibmc-threadsafe.svg\n\t:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/\n\n.. |downloads| image:: https://img.shields.io/pypi/dw/django-pylibmc-threadsafe.svg\n\t:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/\n\n.. |license| image:: https://img.shields.io/pypi/l/django-pylibmc-threadsafe.svg\n\t:target: https://pypi.python.org/pypi/django-pylibmc-threadsafe/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Thread safe pylibmc cache pbackend for django",
    "version": "1.0.1",
    "split_keywords": [
        "pylibmc",
        "django"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61be425721053451538b1c748b5b0de2662f68e911d1e70a485de302e776294e",
                "md5": "28035fd528c01087fe6610ee43a46c61",
                "sha256": "f9c61e001e12b6e6fc4319f9366d6eaff9b61250b09bf010a274050fe693eda4"
            },
            "downloads": -1,
            "filename": "django_pylibmc_threadsafe-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28035fd528c01087fe6610ee43a46c61",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3798,
            "upload_time": "2023-01-28T08:39:59",
            "upload_time_iso_8601": "2023-01-28T08:39:59.979815Z",
            "url": "https://files.pythonhosted.org/packages/61/be/425721053451538b1c748b5b0de2662f68e911d1e70a485de302e776294e/django_pylibmc_threadsafe-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae7d4150a656765978f0919dba03469eb676526f90046dfac16d3a40e67506d7",
                "md5": "cd235dda11afec4fb70e4fe068a2308a",
                "sha256": "4291f84b21749ced7058078750a55dd9102033aa6b502b6cdeb23ab53417eaa1"
            },
            "downloads": -1,
            "filename": "django_pylibmc_threadsafe-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "cd235dda11afec4fb70e4fe068a2308a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10018,
            "upload_time": "2023-01-28T08:40:02",
            "upload_time_iso_8601": "2023-01-28T08:40:02.188741Z",
            "url": "https://files.pythonhosted.org/packages/ae/7d/4150a656765978f0919dba03469eb676526f90046dfac16d3a40e67506d7/django_pylibmc_threadsafe-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-28 08:40:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "django-pylibmc-threadsafe"
}
        
Elapsed time: 0.08405s