Skip to content

jason-gao/mysqlHashTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Mysql hash 分表

#运行demo

  • 配置DB.php为自己的数据库设置
  • php testHashTable.php

#支持3种hash,也可以自己在扩展

//require 'hash/bin2hexHashTable.php';

//require 'hash/crc32HashTable.php';

require 'hash/modHashTable.php';

//$hash = new bin2hexHashTable();

//$hash = new crc32HashTable();

$hash = new modHashTable(10);

$hashTable = new hashTable($hash);

About

mysql hash分表

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages