| 6193 | } |
| 6194 | |
| 6195 | TSAction |
| 6196 | TSCacheWrite(TSCont contp, TSCacheKey key) |
| 6197 | { |
| 6198 | sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS); |
| 6199 | sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS); |
| 6200 | |
| 6201 | FORCE_PLUGIN_SCOPED_MUTEX(contp); |
| 6202 | |
| 6203 | CacheInfo *info = reinterpret_cast<CacheInfo *>(key); |
| 6204 | Continuation *i = reinterpret_cast<INKContInternal *>(contp); |
| 6205 | |
| 6206 | return reinterpret_cast<TSAction>( |
| 6207 | cacheProcessor.open_write(i, &info->cache_key, info->frag_type, 0, false, info->pin_in_cache, info->hostname, info->len)); |
| 6208 | } |
| 6209 | |
| 6210 | TSAction |
| 6211 | TSCacheRemove(TSCont contp, TSCacheKey key) |