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

Method getByteArrayByKey

tests/testmemcached.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 // **** Start testing getting byte array by key ****
123 C_ATTR(getByteArrayByKey, :Local :AutoArgs)
124 void getByteArrayByKey(Context *c)
125 {
126 auto in = getKeyVal(c);
127 Memcached::ReturnType rt;
128 if (Memcached::getByKey("myLittleGroup", in.first, nullptr, &rt) == in.second.toUtf8()) {
129 setValid(c);
130 } else {
131 setRt(c, rt);
132 }
133 }
134
135 // **** Start testing set empty key by key ****
136 C_ATTR(setEmptyKeyByKey, :Local :AutoArgs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected