Cache Commons
C Rust CMake C++ Shell
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.github Adding issue and pull request templates to comply with twitter OSS po… Jul 20, 2018
ci
cmake Rust build tweak (#165) Jul 20, 2018
docs
include improve cc_bstring string literal and cstring names (#176) Jul 30, 2018
notes
rust
src
test
.gitignore
.travis.yml
CMakeLists.txt
HEADER
LICENSE update license Nov 25, 2015
NOTICE
README.md
ccommon.pc.in
config.h.in use accept4 for tcp_accept when available (#171) Jul 26, 2018
test-coverage.sh

README.md

ccommon

ccommon is a C library for the various cache projects developed by Twitter's cache team. It is currently used by unified cache backend.

Origins

The Twitter Cache team started working on a fork of Memcached in 2010, and over time has written various cache backends such as fatcache, slimcache and cache middle layer twemproxy. These projects have a lot in common, especially when you examine the project structure and the underlying mechanism that drives the runtime. Instead of stretching our effort thin by maintaining several individual code bases, we started building a library that captures the commonality of these projects. It is also our belief that the commonality extends beyond just caching, and can be used as the skeleton of writing many more high-throughput, low-latency services used intended for a distributed environment.

Dependencies

Build using CMake

To use cmake, make sure you already have it installed and the version is above 2.8

# you can also configure and compile in-source, i.e., directly at the project top level, but out-of-source compile is strongly encouraged by CMake.
# For one: there won't be something like "make (dist)clean" to help you clean up the mess afterwards
mkdir _build
cd _build
cmake ..
make

License

This software is licensed under the Apache 2 license, see LICENSE for details.