Append/prepend commands.
Introduce new storage commands "append" and "prepend" for atomic value
modification. They follow generic storage commands interface as described in
doc/protocol.txt:
<command name> <key> <flags> <exptime> <bytes>\r\n
<data block>\r\n
Current implementation involves memcpy() twice to combine values on writing
(i.e. full resulting value are copied), but truly atomic (and even threadsafe).
author |
Maxim Dounin <mdounin@mdounin.ru> |
date |
Sun, 30 Sep 2007 04:14:57 +0400 |
parents |
30782bb1fc04 |
children |
|
rev |
line source |
0
|
1 /* stats */
|
|
2 void stats_prefix_init(void);
|
|
3 void stats_prefix_clear(void);
|
|
4 void stats_prefix_record_get(const char *key, const bool is_hit);
|
|
5 void stats_prefix_record_delete(const char *key);
|
|
6 void stats_prefix_record_set(const char *key);
|
|
7 /*@null@*/
|
|
8 char *stats_prefix_dump(int *length);
|