Skip to content

Commit

Permalink
Fixed #13405 -- Removed the recommendation for the use of cmemcache. …
Browse files Browse the repository at this point in the history
…Thanks to danielr for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed May 6, 2010
1 parent 0f6555b commit ec1f74a
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions docs/topics/cache.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -67,22 +67,15 @@ fast interface for adding, retrieving and deleting arbitrary data in the cache.
All data is stored directly in memory, so there's no overhead of database or All data is stored directly in memory, so there's no overhead of database or
filesystem usage. filesystem usage.


After installing Memcached itself, you'll need to install the Memcached Python After installing Memcached itself, you'll need to install
bindings, which are not bundled with Django directly. Two versions of this are ``python-memcached``, which provides Python bindings to Memcached.
available. Choose and install *one* of the following modules: This is available at ftp://ftp.tummy.com/pub/python-memcached/


* The fastest available option is a module called ``cmemcache``, available .. versionchanged:: 1.2
at http://gijsbert.org/cmemcache/ . In Django 1.0 and 1.1, you could also use ``cmemcache`` as a binding.

However, support for this library was deprecated in 1.2 due to
* If you can't install ``cmemcache``, you can install ``python-memcached``, a lack of maintenence on the ``cmemcache`` library itself. Support for
available at ftp://ftp.tummy.com/pub/python-memcached/ . If that URL is ``cmemcache`` will be removed completely in Django 1.4.
no longer valid, just go to the Memcached Web site
(http://www.danga.com/memcached/) and get the Python bindings from the
"Client APIs" section.

.. versionadded:: 1.0
The ``cmemcache`` option is new in 1.0. Previously, only
``python-memcached`` was supported.


To use Memcached with Django, set ``CACHE_BACKEND`` to To use Memcached with Django, set ``CACHE_BACKEND`` to
``memcached://ip:port/``, where ``ip`` is the IP address of the Memcached ``memcached://ip:port/``, where ``ip`` is the IP address of the Memcached
Expand Down

0 comments on commit ec1f74a

Please sign in to comment.