From 0fa1aa8711a6e1f3653e98943f2847366c0ac556 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sun, 25 Sep 2005 22:03:30 +0000 Subject: Added a database-backed cache backend, along with a tool in django-admin to create the necessary table structure. This closes #515; thanks again, Eugene! git-svn-id: http://code.djangoproject.com/svn/django/trunk@692 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/cache.txt | 10 ++++++++++ docs/django-admin.txt | 8 ++++++++ 2 files changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/cache.txt b/docs/cache.txt index 9f50e45511..ff1c406f7c 100644 --- a/docs/cache.txt +++ b/docs/cache.txt @@ -29,10 +29,20 @@ Examples: memcached://127.0.0.1:11211/ A memcached backend; the server is running on localhost port 11211. + db://tablename/ A database backend in a table named + "tablename". This table should be created + with "django-admin createcachetable". + + file:///var/tmp/django_cache/ A file-based cache stored in the directory + /var/tmp/django_cache/. + simple:/// A simple single-process memory cache; you probably don't want to use this except for testing. Note that this cache backend is NOT threadsafe! + + locmem:/// A more sophisticaed local memory cache; + this is multi-process- and thread-safe. ============================== =========================================== All caches may take arguments -- they're given in query-string style. Valid diff --git a/docs/django-admin.txt b/docs/django-admin.txt index 3f428161e0..b4b07f4f12 100644 --- a/docs/django-admin.txt +++ b/docs/django-admin.txt @@ -40,6 +40,14 @@ your admin's index page. See `Tutorial 2`_ for more information. .. _Tutorial 2: http://www.djangoproject.com/documentation/tutorial2/ +createcachetable [tablename] +---------------------------- + +Creates a cache table named ``tablename`` for use with the database cache +backend. See the `cache documentation`_ for more information. + +.. _cache documentation: http://www.djangoproject.com/documentation/cache/ + createsuperuser --------------- -- cgit v1.3