From 851e44250ea72b35e26b462a0cd90636a609331f Mon Sep 17 00:00:00 2001 From: qii Date: Wed, 9 Mar 2016 16:28:01 +0800 Subject: [PATCH] comment --- README.md | 8 ++++++++ example/WithOutSlavesClient.php | 4 ++++ example/WithSlavesClient.php | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 0036d52..73a13a7 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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, diff --git a/example/WithOutSlavesClient.php b/example/WithOutSlavesClient.php index 70e6a8f..699ee51 100644 --- a/example/WithOutSlavesClient.php +++ b/example/WithOutSlavesClient.php @@ -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, diff --git a/example/WithSlavesClient.php b/example/WithSlavesClient.php index 1f8282d..9cc297c 100644 --- a/example/WithSlavesClient.php +++ b/example/WithSlavesClient.php @@ -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,