Cache Commons
C Rust CMake C++ Shell
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
.github Adding issue and pull request templates to comply with twitter OSS po… Jul 20, 2018
cmake Rust build tweak (#165) Jul 20, 2018
include improve cc_bstring string literal and cstring names (#176) Jul 30, 2018
LICENSE update license Nov 25, 2015
NOTICE use accept4 for tcp_accept when available (#171) Jul 26, 2018


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


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.


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 ..


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