Recommend this page to a friend! |
Classes of Eric Sizemore | Consistent Hashing | README.md | Download |
|
DownloadConsistentHashEsi\ConsistentHash is a small PHP library which implements consistent hashing, which is most useful in distributed caching. > [!NOTE] > This library is a fork of https://github.com/pda/flexihash v3.0.0. The original library has not seen any releases since 2020. InstallationYou can install the package via composer:
Usage
BenchmarksPHPBenchPerformance can be tested with PHPBench.
Or via composer:
There is also an option to view results as a bar chart:
With opcache enabled:
PHPUnitBenchmarks are also available through PHPUnit, though it is a bit more rudimentary. To see these benchmarks, run:
AboutRequirements
Credits
And thanks to the library this is a fork of, flexihash/flexihash: ContributingSee CONTRIBUTING. Bugs and feature requests are tracked on GitHub. Contributor Covenant Code of ConductBackward Compatibility PromiseSee backward-compatibility.md for more information on Backwards Compatibility. ChangelogSee the CHANGELOG for more information on what has changed recently. LicenseSee the LICENSE for more information on the license that applies to this project. Roadmap/TODOSee the ROADMAP for more information what is currently being planned. SecuritySee SECURITY for more information on the security disclosure process. |