-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
35 lines (25 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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