skoczen avatar 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*
 ------------
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.