| 91 | |
| 92 | template <class T, class... A> |
| 93 | void |
| 94 | fetch(const std::string &k, A &&...a) |
| 95 | { |
| 96 | const Key key(k); |
| 97 | const TSCont continuation = TSContCreate(Read<T>::handle, TSMutexCreate()); |
| 98 | assert(continuation != nullptr); |
| 99 | TSContDataSet(continuation, new Read<T>(std::forward<A>(a)...)); |
| 100 | TSCacheRead(continuation, key.key()); |
| 101 | } |
| 102 | |
| 103 | struct Write { |
| 104 | const std::string content_; |
nothing calls this directly
no test coverage detected