https://github.com/pgk/boostcached
Boost C++ key/value store example
https://github.com/pgk/boostcached
Last synced: 21 days ago
JSON representation
Boost C++ key/value store example
- Host: GitHub
- URL: https://github.com/pgk/boostcached
- Owner: pgk
- Created: 2013-09-30T22:30:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-01T08:20:59.000Z (over 12 years ago)
- Last Synced: 2025-12-25T22:59:50.010Z (6 months ago)
- Language: C++
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##BoostCached
As a means to study Boost C++, in particular `boost::asio`, here is a naive "Hello World" in-memory key/value store in the spirit of memcached. Also using `boost::log::trivial`, `boost::thread/mutex`, and `boost::program_options`.
###How to compile
* Tested only on OS X Lion, but should compile on a recent compiler (`clang/llvm` and probably `gcc/g++`)
* You will need `cmake` and `make`, with all their dependencies
* The assumption is that you have installed boost libraries and they live on `/usr/local/include` and `/usr/local/lib`
cd into the project directory and:
cmake .
make
then if all went well, you can run it with:
./bin/boostcached --port 8080
or get help with:
./bin/boostcached --help
then you can test it with:
telnet 127.0.0.1 8081
get foo
get bar
set MyKey xyz
etc...
note that this is not daemonized and that logging is on stdout.