File tree 4 files changed +60
-0
lines changed
4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ The following daemons are built on simplehttp and included
11
11
* simpletokyo - a HTTP /get /post /del /fwmatch /incr interface in front of ttserver
12
12
* sortdb - Sorted database server
13
13
* simplegeo
14
+ * simplememdb - an in-memory version of simpletokyo
14
15
* qrencode
15
16
16
17
INSTALL INSTRUCTIONS
@@ -36,4 +37,5 @@ Some modules have additional dependencies:
36
37
* [ json-c] ( http://oss.metaparadigm.com/json-c/ )
37
38
* [ tokyocabinet] ( http://fallabs.com/tokyocabinet/ ) / [ tokyotyrant] ( http://fallabs.com/tokyotyrant/ )
38
39
* [ qrencode] ( http://fukuchi.org/works/qrencode/index.en.html )
40
+ * [ pcre] ( http://www.pcre.org/ )
39
41
Original file line number Diff line number Diff line change
1
+ simplememdb
2
+ ===========
3
+
4
+ in-memory http accessible tokyo cabinet database
5
+
6
+ Cmdline usage:
7
+
8
+ -a 0.0.0.0 (address to bind to)
9
+ -p 8080 (port to bind to)
10
+ -D daemonize (default off)
11
+
12
+ API endpoints:
13
+
14
+ * /get
15
+ parameter: key
16
+
17
+ * /put
18
+ parameter: key
19
+ parameter: value
20
+
21
+ * /del
22
+ parameter: key
23
+
24
+ * /dump
25
+ parameter: regex (optional regex to dump specific keys)
26
+
27
+ * /fwmatch
28
+ parameter: key
29
+ parameter: max (optional)
30
+ parameter: length (optional)
31
+ parameter: offset (optional)
32
+
33
+ * /fwmatch_int (returns values added with /incr)
34
+ parameter: key
35
+ parameter: max (optional)
36
+ parameter: length (optional)
37
+ parameter: offset (optional)
38
+
39
+ * /incr
40
+ parameter: key
41
+ parameter: value
42
+
43
+ * /get_int (to return values added with /incr)
44
+ parameter: key (accepts multiple &key= parameters)
45
+
46
+ * /vanish (empty the database)
47
+
48
+ * /stats (example output)
49
+ parameter: format=json|txt
50
+
51
+ * /exit
52
+
53
+ Dependencies
54
+
55
+ * [ libevent] ( http://monkey.org/~provos/libevent/ ) 1.4.13+
56
+ * [ json-c] ( http://oss.metaparadigm.com/json-c/ )
57
+ * [ tokyocabinet] ( http://fallabs.com/tokyocabinet/ )
58
+ * [ pcre] ( http://www.pcre.org/ )
You can’t perform that action at this time.
0 commit comments