Skip to content

empotix/ccommon

 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages

  • C 94.5%
  • CMake 3.7%
  • C++ 1.7%
  • Shell 0.1%