Commits

skoczen committed 1f2a585

Updated docs to include JOHNNY_DATABASE_MAPPING

Comments (0)

Files changed (1)

docs/queryset_cache.rst

 * ``JOHNNY_MIDDLEWARE_KEY_PREFIX``
 * ``JOHNNY_MIDDLEWARE_SECONDS``
 * ``MAN_IN_BLACKLIST``
+* ``JOHNNY_DATABASE_MAPPING``
 
 .. highlight:: python
 
 settings file to be understandable, you can use the alias
 ``JOHNNY_TABLE_BLACKLIST``.  We just couldn't resist.
 
+``JOHNNY_DATABASE_MAPPING`` is a user defined dictionary that maps database
+names to one another.  The primary use for ``JOHNNY_DATABASE_MAPPING`` is to
+assure master/slave setups that using a django router all point to the same
+cache keys.  For a typical default/slave setup this will do the job:
+
+	JOHNNY_DATABASE_MAPPING = { 
+		'slave': 'default', 
+	}
+
+
 *Deprecated*
 ------------