summaryrefslogtreecommitdiff
path: root/items.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2019-04-30 01:38:05 -0700
committerdormando <dormando@rydia.net>2019-09-30 18:17:46 -0700
commit1e1462867dfe057e037b62fa9ca50e1062874d44 (patch)
treedbbdc73b5d3008a9eb364fb7754bbec915065e0c /items.h
parentef4d20d265449329d5af80d397eb9c739f172411 (diff)
downloadmemcached-1e1462867dfe057e037b62fa9ca50e1062874d44.tar.gz
meta text protocol commands
- we get asked a lot to provide a "metaget" command, for various uses (debugging, etc) - we also get asked for random one-off commands for various use cases. - I really hate both of these situations and have been wanting to experiment with a slight tuning of how get commands work for a long time. Assuming that if I offer a metaget command which gives people the information they're curious about in an inefficient format, plus data they don't need, we'll just end up with a slow command with compatibility issues. No matter how you wrap warnings around a command, people will put it into production under high load. Then I'm stuck with it forever. Behold, the meta commands! See doc/protocol.txt and the wiki for a full explanation and examples. The intent of the meta commands is to support any features the binary protocol had over the text protocol. Though this is missing some commands still, it is close and surpasses the binary protocol in many ways.
Diffstat (limited to 'items.h')
-rw-r--r--items.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/items.h b/items.h
index c643ddf..8758197 100644
--- a/items.h
+++ b/items.h
@@ -73,6 +73,7 @@ void fill_item_stats_automove(item_stats_automove *am);
item *do_item_get(const char *key, const size_t nkey, const uint32_t hv, conn *c, const bool do_update);
item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv, conn *c);
+void do_item_bump(conn *c, item *it, const uint32_t hv);
void item_stats_reset(void);
extern pthread_mutex_t lru_locks[POWER_LARGEST];