MCPcopy Create free account
hub / github.com/apache/trafficserver / TSCacheKeyPinnedSet

Function TSCacheKeyPinnedSet

src/api/InkAPI.cc:3060–3072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3058}
3059
3060TSReturnCode
3061TSCacheKeyPinnedSet(TSCacheKey key, time_t pin_in_cache)
3062{
3063 sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS);
3064
3065 if ((reinterpret_cast<CacheInfo *>(key))->magic != CACHE_INFO_MAGIC_ALIVE) {
3066 return TS_ERROR;
3067 }
3068
3069 CacheInfo *i = reinterpret_cast<CacheInfo *>(key);
3070 i->pin_in_cache = pin_in_cache;
3071 return TS_SUCCESS;
3072}
3073
3074TSReturnCode
3075TSCacheKeyDestroy(TSCacheKey key)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected