Updating hashes
Summary: GitHub commits:
https://github.com/facebook/CacheLib/commit/131894ee9cfdc7844d3afe2e5c0fb029fcf0922e https://github.com/facebook/fb303/commit/dbf38812da70f065e81aeaabaa45c7751f95d1ef https://github.com/facebook/fbthrift/commit/06b44f1cec1ad98e090971cbfd7def33cf509d46 https://github.com/facebook/folly/commit/866efdcff136065dd195f7914e2c24187e6d4189 https://github.com/facebook/hermes/commit/65df94b394f7c3a6417d4efbaf613b7ae7608494 https://github.com/facebook/mvfst/commit/cbf07a90962938c40ed11d8899d0e8b2e8771dd5 https://github.com/facebook/proxygen/commit/029d51d1070ba40ea2215fc5f9e8f70df93e438a https://github.com/facebook/pyrefly/commit/fb7004fb993c92927a5264de237daf64ef601c55 https://github.com/facebook/wangle/commit/0d0fd40dc75adf157f9cfa75b4e0963c9c527bce https://github.com/facebookexperimental/edencommon/commit/150a9280848272c64a7623de979697b60b0f71cc https://github.com/facebookexperimental/rust-shed/commit/71a5492f7e1f3686903f9fb40555b2202afb9d15 https://github.com/facebookincubator/fizz/commit/cbdf23e3df653bd4d44898c09545dd0f5cdc923b
Reviewed By: kainanpeace666
fbshipit-source-id: 96dc26580af50bce1d4bc8bba1c3011bc90e8dd6
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
CacheLib
Pluggable caching engine to build and scale high performance cache services. See www.cachelib.org for documentation and more information.
What is CacheLib ?
CacheLib is a C++ library providing in-process high performance caching mechanism. CacheLib provides a thread safe API to build high throughput, low overhead caching services, with built-in ability to leverage DRAM and SSD caching transparently.
Performance benchmarking
CacheLib provides a standalone executable
CacheBenchthat can be used to evaluate the performance of heuristics and caching hardware platforms against production workloads. AdditionallyCacheBenchenables stress testing implementation and design changes to CacheLib to catch correctness and performance issues.See CacheBench for usage details and examples.
Versioning
CacheLib has one single version number
facebook::cachelib::kCachelibVersionthat can be located at CacheVersion.h. This version number must be incremented when incompatible changes are introduced. A change is incompatible if it could cause a complication failure due to removing public API or requires dropping the cache. Details about the compatibility information when the version number increases can be found in the changelog.Building and installation with
getdeps.pyThis script is used by many of Meta’s OSS tools. It will download and build all of the necessary dependencies first, and will then invoke cmake etc to build folly. This will help ensure that you build with relevant versions of all of the dependent libraries, taking into account what versions are installed locally on your system.
Dependencies
You can install system dependencies to save building them:
If you’d like to see the packages before installing them:
On other platforms or if on Linux and without system dependencies
getdeps.pywill mostly download and build them for you during the build step.Some of the dependencies
getdeps.pyuses and installs are:Build
This script will download and build all of the necessary dependencies first, and will then invoke cmake etc to build CacheLib. This will help ensure that you build with relevant versions of all of the dependent libraries, taking into account what versions are installed locally on your system.
getdeps.pycurrently requires python 3.6+ to be on your path.getdeps.pywill invoke cmake etc.Run tests
By default
getdeps.pywill build the tests for cachelib. To run them:Locating build output
getdeps.pyinstalls build artifacts to a scratch directory. To find where CacheLib was installed:The install directory contains
bin/(executables likecachebench),lib/(libraries),include/(headers), andtest_configs/(sample configurations).Contributing
We’d love to have your help in making CacheLib better. If you’re interested, please read our guide to contributing
License
CacheLib is apache licensed, as found in the LICENSE file.
Reporting and Fixing Security Issues
Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors. Security issues in CacheLib can be safely reported via Facebook’s Whitehat Bug Bounty program:
https://www.facebook.com/whitehat
Facebook’s security team will triage your report and determine whether or not is it eligible for a bounty under our program.
Build status
Clicking on a badge will show you the recent builds for that OS. If your target OS’s build is failing, you may check out the latest release. If the release is too stale for you, you may wish to check recent issues and PRs for known workarounds.