Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qishibo committed Mar 9, 2016
1 parent 7c43acf commit 851e442
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ $config = [
['host' => '127.0.0.1', 'port' => 6380],
];

// hash stragety, you can also define your stragety in Hash folder
$hash = new Hash\Consistant();

// key hasher, such as new Md5 or Cr32, you can add it in Key folder
$Calculator = new Key\Cr32();
// $Calculator = new Key\Md5();

$redis = new WithoutSlavesClient(
$config,
Expand Down Expand Up @@ -84,8 +88,12 @@ $config = [
]
];

// hash stragety, you can also define your stragety in Hash folder
$hash = new Hash\Consistant();

// key hasher, such as new Md5 or Cr32, you can add it in Key folder
$Calculator = new Key\Cr32();
// $Calculator = new Key\Md5();

$redis = new WithSlavesClient(
$config,
Expand Down
4 changes: 4 additions & 0 deletions example/WithOutSlavesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
['host' => '127.0.0.1', 'port' => 6380],
];

// hash stragety, you can also define your stragety in Hash folder
$hash = new Hash\Consistant();

// key hasher, such as new Md5 or Cr32, you can add it in Key folder
$Calculator = new Key\Cr32();
// $Calculator = new Key\Md5();

$redis = new WithoutSlavesClient(
$config,
Expand Down
4 changes: 4 additions & 0 deletions example/WithSlavesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
]
];

// hash stragety, you can also define your stragety in Hash folder
$hash = new Hash\Consistant();

// key hasher, such as new Md5 or Cr32, you can add it in Key folder
$Calculator = new Key\Cr32();
// $Calculator = new Key\Md5();

$redis = new WithSlavesClient(
$config,
Expand Down

0 comments on commit 851e442

Please sign in to comment.