| 2975 | } |
| 2976 | |
| 2977 | TSCacheKey |
| 2978 | TSCacheKeyCreate() |
| 2979 | { |
| 2980 | TSCacheKey key = reinterpret_cast<TSCacheKey>(new CacheInfo()); |
| 2981 | |
| 2982 | // TODO: Probably remove this when we can be use "NEW" can't fail. |
| 2983 | sdk_assert(sdk_sanity_check_cachekey(key) == TS_SUCCESS); |
| 2984 | return key; |
| 2985 | } |
| 2986 | |
| 2987 | TSReturnCode |
| 2988 | TSCacheKeyDigestSet(TSCacheKey key, const char *input, int length) |