static Object mcr_str_delta(ObjectData* this_, const String& key, int64_t val) { mcr::mcrouter_msg_t msg; msg.req = mc_msg_new_with_key_full(key.c_str(), key.size()); msg.req->delta = val; msg.req->op = op; return Native::data<MCRouter>(this_)->issue(msg); }
// Create a new message with a copy of the key (uses mc_msg_new). mc_msg_t *mc_msg_new_with_key(const char *key) { return mc_msg_new_with_key_full(key, strlen(key)); }