flexihash:Flexihash是一个小型PHP库,实现了一致的哈希

时间:2021-04-14 09:56:32
【文件属性】:
文件名称:flexihash:Flexihash是一个小型PHP库,实现了一致的哈希
文件大小:25KB
文件格式:ZIP
更新时间:2021-04-14 09:56:32
PHP Flexihash Flexihash是一个小型PHP库,实现了,这在分布式缓存中最有用。 它需要PHP5并使用进行单元测试。 安装 是推荐的安装技术。 你可以找到flexihash 所以安装一样简单 composer require flexihash/flexihash 或在您的composer.json { " require " : { " flexihash/flexihash " : " ^3.0.0 " } } 用法 $ hash = new Flexihash (); // bulk add $ hash -> addTargets ([ 'cache-1' , 'cache-2' , 'cache-3' ]); // simple lookup $ hash -> lookup ( 'object-a' ); // "cache-1"
【文件预览】:
flexihash-master
----.coveralls.yml(61B)
----src()
--------Flexihash.php(7KB)
--------Hasher()
--------Exception.php(229B)
----phpunit.xml.dist(631B)
----.travis.yml(782B)
----composer.lock(115KB)
----LICENCE(1KB)
----README.md(2KB)
----tests()
--------Hasher()
--------FlexihashTest.php(9KB)
--------BenchmarkTest.php(6KB)
----.gitignore(9B)
----ROADMAP.md(503B)
----phpcs.xml(142B)
----CHANGELOG.md(2KB)
----composer.json(1KB)

网友评论