summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-09-25 22:03:30 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-09-25 22:03:30 +0000
commit0fa1aa8711a6e1f3653e98943f2847366c0ac556 (patch)
tree6d76e49e1cd668c83cca5736b8cf8242b51a4f83 /docs
parent6b4095ad10fc4a422b5243b353f45b8fc44562b3 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/cache.txt10
-rw-r--r--docs/django-admin.txt8
2 files changed, 18 insertions, 0 deletions
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
---------------