Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Small stupid implementation of a memcached engine implemented in C++ using STL
C C++ Shell
branch: master
Failed to load latest commit information.
config
m4 Added macro to look for libz
src
.gitignore
AUTHORS Create example storage engine in C++
COPYING Create example storage engine in C++
Makefile.am Added an engine that does compression
README Added an engine that does compression
configure.ac

README

Hi!

You have just downloaded the source for various example engines I've created
for demo purposes of the storage engine API in memcached.

C++
===

I know that a lot of people dislike C, and would prefer to use C++ to
create their engine. To show you how to write an engine in C++, I decided
to create a small engine using STL containers to store the objects in.
You'll find this implementation in src/stl

Persistent
==========

People always talk about a persistent cache, so I thought I could
write up a small example where I just tweaked the default engine from
the memcached source distribution to store it's data in a database
(sqlite). That means that items.[ch] assoc.[ch] slabs.[ch] is copied from
the source distribution, and persistent_engine.[ch] is almost identical
to default_engine.[ch].

Compress
========

An engine that compress the items it stores. This is based on default
engine with only a small modification. Please note that append/prepend
and incr/decr will most likely not work ;-)

Hope you will find the examples interesting.

Cheers,

Trond Norbye
Something went wrong with that request. Please try again.