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

Method setByteArray

tests/testmemcached.cpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 // **** Start testing setting byte array ****
66 C_ATTR(setByteArray, :Local :AutoArgs)
67 void setByteArray(Context *c)
68 {
69 auto in = getKeyVal(c);
70 Memcached::ReturnType rt;
71 if (Memcached::set(in.first, in.second.toUtf8(), 1min, &rt)) {
72 setValid(c);
73 } else {
74 setRt(c, rt);
75 }
76 }
77
78 // **** Start testing getting byte array ****
79 C_ATTR(getByteArray, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

setFunction · 0.85

Tested by

no test coverage detected