浏览代码

Rename Predis\Cluster\Hash\CRC16HashGenerator.

Daniele Alessandri 11 年之前
父节点
当前提交
944da8c9b8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib/Predis/Cluster/Hash/CRC16.php
  2. 1 1
      lib/Predis/Cluster/RedisStrategy.php

+ 1 - 1
lib/Predis/Cluster/Hash/CRC16HashGenerator.php → lib/Predis/Cluster/Hash/CRC16.php

@@ -16,7 +16,7 @@ namespace Predis\Cluster\Hash;
  *
  * @author Daniele Alessandri <suppakilla@gmail.com>
  */
-class CRC16HashGenerator implements HashGeneratorInterface
+class CRC16 implements HashGeneratorInterface
 {
     private static $CCITT_16 = array(
         0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,

+ 1 - 1
lib/Predis/Cluster/RedisStrategy.php

@@ -31,7 +31,7 @@ class RedisStrategy implements StrategyInterface
     public function __construct()
     {
         $this->commands = $this->getDefaultCommands();
-        $this->hashGenerator = new Hash\CRC16HashGenerator();
+        $this->hashGenerator = new Hash\CRC16();
     }
 
     /**