Updating hashes
Summary: GitHub commits:
https://github.com/facebook/CacheLib/commit/f2f83ceb43294e383bc4524bc294b681910737eb https://github.com/facebook/fb303/commit/ce8af6280bc7ce336ddc05064d0165cfdcb24b58 https://github.com/facebook/fbthrift/commit/da27a027f856b63281e2c36b1a35d3c38a7229cf https://github.com/facebook/folly/commit/e243181570d06e6e746bc3995f0745f0e3dfd532 https://github.com/facebook/hermes/commit/36ab30689cf94a66203f5f99d9a4dd4d7930c515 https://github.com/facebook/mvfst/commit/3fc45489431dea92fbbdbf6d74161da416178f1a https://github.com/facebook/proxygen/commit/4954ad12adc177a9654ef7b5f9c30a1bdc6d6658 https://github.com/facebook/pyrefly/commit/b4cf749b51534e0886d9568da126cbd7dae784cd https://github.com/facebook/wangle/commit/ab25c8c58a444e62adb5ba9cb59aa25d4aa1fb45 https://github.com/facebookexperimental/edencommon/commit/f7388c02828151cd5371e1a6d572f741aa7a31f2 https://github.com/facebookexperimental/rust-shed/commit/aaefb4dbc2685df0a63721e3ff2b45e0f5c3b124 https://github.com/facebookincubator/fizz/commit/7de8f52e9878206cd3a0192d9b4295cd58cd2ac9
Reviewed By: ajb85
fbshipit-source-id: 2f63954b9a484cc3590def6cf8ac9d41494bc41f
版权所有:中国计算机学会技术支持:开源发展技术委员会
京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.