| 3058 | } |
| 3059 | |
| 3060 | TSReturnCode |
| 3061 | TSCacheKeyPinnedSet(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 | |
| 3074 | TSReturnCode |
| 3075 | TSCacheKeyDestroy(TSCacheKey key) |
nothing calls this directly
no test coverage detected