Skip to content

Small stupid implementation of a memcached engine implemented in C++ using STL

License

Notifications You must be signed in to change notification settings

trondn/memcached-engines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small stupid implementation of a memcached engine implemented in C++ using STL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published