Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update create_cluster example

  • Loading branch information...
commit c9ada35581faa5bdf625a04102469732992ba9d9 1 parent 341a2d1
@dcramer dcramer authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 README.rst
View
6 README.rst
@@ -10,10 +10,6 @@ The following example creates a Redis connection cluster which will distribute r
>>> redis = create_cluster({
>>> 'engine': 'nydus.db.backends.redis.Redis',
>>> 'router': 'nydus.db.routers.keyvalue.PartitionRouter',
- >>> 'defaults': {
- >>> 'host': 'localhost',
- >>> 'port': 6379,
- >>> },
>>> 'hosts': {
>>> 0: {'db': 0},
>>> 1: {'db': 1},
@@ -39,6 +35,8 @@ There are two required keyword arguments:
(the keys are numeric values simply for readability in configuration)
+* ``defaults``: a dictionary of default settings for all hosts to inherit from.
+
Optionally, you may also specify a value for ``router``, which is the full path to the router class,
which must extend ``nydus.db.routers.BaseRouter``.
Please sign in to comment.
Something went wrong with that request. Please try again.