MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / setByteArrayByKey

Method setByteArrayByKey

tests/testmemcached.cpp:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 // **** Start testing setting byte array by key ****
109 C_ATTR(setByteArrayByKey, :Local :AutoArgs)
110 void setByteArrayByKey(Context *c)
111 {
112 auto in = getKeyVal(c);
113 Memcached::ReturnType rt;
114 if (Memcached::setByKey(
115 "myLittleGroup", in.first, in.second.toUtf8(), std::chrono::seconds{5}, &rt)) {
116 setValid(c);
117 } else {
118 setRt(c, rt);
119 }
120 }
121
122 // **** Start testing getting byte array by key ****
123 C_ATTR(getByteArrayByKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected