Skip to content

Commit 86e67bb

Browse files
Lenar Fatikhovfacebook-github-bot
authored andcommitted
add a flag to request exptime in reply
Summary: if the flag is set on the request, reply will have exptime attached to the reply Reviewed By: stuclar Differential Revision: D64145438 fbshipit-source-id: 3e25ad2736513a4e4e4d1171ef6e4e9923f6bead
1 parent 249f44a commit 86e67bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcrouter/lib/mc/msg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ enum mc_msg_flags_t {
265265
MC_MSG_FLAG_ASCII_INT_SERIALIZED = 0x10,
266266
MC_MSG_FLAG_SIZE_SPLIT = 0x20,
267267
MC_MSG_FLAG_KEY_CLIENT_BINDING_ENABLED = 0x40,
268+
MC_MSG_FLAG_REQUEST_EXPTIME = 0x80,
268269
MC_MSG_FLAG_NZLIB_COMPRESSED = 0x800,
269270
MC_MSG_FLAG_QUICKLZ_COMPRESSED = 0x2000,
270271
MC_MSG_FLAG_SNAPPY_COMPRESSED = 0x4000,
@@ -308,6 +309,8 @@ static inline const char* mc_flag_to_string(const enum mc_msg_flags_t flag) {
308309
return "SIZE_SPLIT";
309310
case MC_MSG_FLAG_KEY_CLIENT_BINDING_ENABLED:
310311
return "MC_MSG_FLAG_KEY_CLIENT_BINDING_ENABLED";
312+
case MC_MSG_FLAG_REQUEST_EXPTIME:
313+
return "MC_MSG_FLAG_REQUEST_EXPTIME";
311314
case MC_MSG_FLAG_NZLIB_COMPRESSED:
312315
return "NZLIB_COMPRESSED";
313316
case MC_MSG_FLAG_QUICKLZ_COMPRESSED:

0 commit comments

Comments
 (0)