248 ServerTemporaryDisabled,
249 ServerMemoryAllocationFailure,
260 void setDefaultConfig(
const QVariantMap &defaultConfig);
274 static bool set(QByteArrayView key,
275 const QByteArray &value,
277 ReturnType *returnType =
nullptr);
283 inline static bool set(QByteArrayView key,
284 const QByteArray &value,
285 std::chrono::seconds expiration,
286 ReturnType *returnType =
nullptr);
302 template <
typename T>
303 static bool set(QByteArrayView key,
306 ReturnType *returnType =
nullptr);
312 template <
typename T>
313 static bool set(QByteArrayView key,
315 std::chrono::seconds expiration,
316 ReturnType *returnType =
nullptr);
334 static bool setByKey(QByteArrayView groupKey,
336 const QByteArray &value,
338 ReturnType *returnType =
nullptr);
344 inline static bool setByKey(QByteArrayView groupKey,
346 const QByteArray &value,
347 std::chrono::seconds expiration,
348 ReturnType *returnType =
nullptr);
367 template <
typename T>
368 static bool setByKey(QByteArrayView groupKey,
372 ReturnType *returnType =
nullptr);
378 template <
typename T>
379 static bool setByKey(QByteArrayView groupKey,
382 std::chrono::seconds expiration,
383 ReturnType *returnType =
nullptr);
400 static bool add(QByteArrayView key,
401 const QByteArray &value,
403 ReturnType *returnType =
nullptr);
409 inline static bool add(QByteArrayView key,
410 const QByteArray &value,
411 std::chrono::seconds expiration,
412 ReturnType *returnType =
nullptr);
432 template <
typename T>
433 static bool add(QByteArrayView key,
436 ReturnType *returnType =
nullptr);
442 template <
typename T>
443 static bool add(QByteArrayView key,
445 std::chrono::seconds expiration,
446 ReturnType *returnType =
nullptr);
467 static bool addByKey(QByteArrayView groupKey,
469 const QByteArray &value,
471 ReturnType *returnType =
nullptr);
477 inline static bool addByKey(QByteArrayView groupKey,
479 const QByteArray &value,
480 std::chrono::seconds expiration,
481 ReturnType *returnType =
nullptr);
504 template <
typename T>
505 static bool addByKey(QByteArrayView groupKey,
509 ReturnType *returnType =
nullptr);
515 template <
typename T>
516 static bool addByKey(QByteArrayView groupKey,
519 std::chrono::seconds expiration,
520 ReturnType *returnType =
nullptr);
537 static bool replace(QByteArrayView key,
538 const QByteArray &value,
540 ReturnType *returnType =
nullptr);
546 inline static bool replace(QByteArrayView key,
547 const QByteArray &value,
548 std::chrono::seconds expiration,
549 ReturnType *returnType =
nullptr);
568 template <
typename T>
569 static bool replace(QByteArrayView key,
572 ReturnType *returnType =
nullptr);
578 template <
typename T>
579 static bool replace(QByteArrayView key,
581 std::chrono::seconds expiration,
582 ReturnType *returnType =
nullptr);
603 static bool replaceByKey(QByteArrayView groupKey,
605 const QByteArray &value,
607 ReturnType *returnType =
nullptr);
613 inline static bool replaceByKey(QByteArrayView groupKey,
615 const QByteArray &value,
616 std::chrono::seconds expiration,
617 ReturnType *returnType =
nullptr);
640 template <
typename T>
641 static bool replaceByKey(QByteArrayView groupKey,
645 ReturnType *returnType =
nullptr);
651 template <
typename T>
652 static bool replaceByKey(QByteArrayView groupKey,
655 std::chrono::seconds expiration,
656 ReturnType *returnType =
nullptr);
676 get(QByteArrayView key, uint64_t *cas =
nullptr, ReturnType *returnType =
nullptr);
708 template <
typename T>
709 static T get(QByteArrayView key, uint64_t *cas =
nullptr, ReturnType *returnType =
nullptr);
731 static QByteArray getByKey(QByteArrayView groupKey,
733 uint64_t *cas =
nullptr,
734 ReturnType *returnType =
nullptr);
771 template <
typename T>
772 static T getByKey(QByteArrayView groupKey,
774 uint64_t *cas =
nullptr,
775 ReturnType *returnType =
nullptr);
785 static bool remove(QByteArrayView key, ReturnType *returnType =
nullptr);
800 removeByKey(QByteArrayView groupKey, QByteArrayView key, ReturnType *returnType =
nullptr);
809 static bool exist(QByteArrayView key, ReturnType *returnType =
nullptr);
823 existByKey(QByteArrayView groupKey, QByteArrayView key, ReturnType *returnType =
nullptr);
856 static bool increment(QByteArrayView key,
858 uint64_t *value =
nullptr,
882 uint64_t *value =
nullptr,
913 uint64_t *value =
nullptr,
923 std::chrono::seconds expiration,
924 uint64_t *value =
nullptr,
961 uint64_t *value =
nullptr,
972 std::chrono::seconds expiration,
973 uint64_t *value =
nullptr,
991 static bool decrement(QByteArrayView key,
993 uint64_t *value =
nullptr,
1017 uint64_t *value =
nullptr,
1048 uint64_t *value =
nullptr,
1058 std::chrono::seconds expiration,
1059 uint64_t *value =
nullptr,
1096 uint64_t *value =
nullptr,
1107 std::chrono::seconds expiration,
1108 uint64_t *value =
nullptr,
1123 static bool cas(QByteArrayView key,
1124 const QByteArray &value,
1133 inline static bool cas(QByteArrayView key,
1134 const QByteArray &value,
1135 std::chrono::seconds expiration,
1153 template <
typename T>
1154 static bool cas(QByteArrayView key,
1164 template <
typename T>
1165 static bool cas(QByteArrayView key,
1167 std::chrono::seconds expiration,
1189 static bool casByKey(QByteArrayView groupKey,
1191 const QByteArray &value,
1200 inline static bool casByKey(QByteArrayView groupKey,
1202 const QByteArray &value,
1203 std::chrono::seconds expiration,
1227 template <
typename T>
1228 static bool casByKey(QByteArrayView groupKey,
1239 template <
typename T>
1240 static bool casByKey(QByteArrayView groupKey,
1243 std::chrono::seconds expiration,
1268 static bool flush(time_t expiration,
ReturnType *returnType =
nullptr);
1274 inline static bool flush(std::chrono::seconds expiration,
ReturnType *returnType =
nullptr);
1289 static QHash<QByteArray, QByteArray>
mget(
const QByteArrayList &keys,
1290 QHash<QByteArray, uint64_t> *casValues =
nullptr,
1308 template <
typename T>
1309 static QHash<QByteArray, T>
mget(
const QByteArrayList &keys,
1310 QHash<QByteArray, uint64_t> *casValues =
nullptr,
1332 static QHash<QByteArray, QByteArray>
mgetByKey(QByteArrayView groupKey,
1333 const QByteArrayList &keys,
1334 QHash<QByteArray, uint64_t> *casValues =
nullptr,
1358 template <
typename T>
1359 static QHash<QByteArray, T>
mgetByKey(QByteArrayView groupKey,
1360 const QByteArrayList &keys,
1361 QHash<QByteArray, uint64_t> *casValues =
nullptr,
1373 static bool touch(QByteArrayView key, time_t expiration,
ReturnType *returnType =
nullptr);
1379 inline static bool touch(QByteArrayView key,
1380 std::chrono::seconds expiration,
1397 static bool touchByKey(QByteArrayView groupKey,
1406 inline static bool touchByKey(QByteArrayView groupKey,
1408 std::chrono::seconds expiration,
1428 const std::unique_ptr<MemcachedPrivate> d_ptr;