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

Function CacheKeyCreate

example/plugins/c-api/protocol/TxnSM.cc:985–996  ·  view source on GitHub ↗

Create 128-bit cache key based on the input string, in this case, the file_name of the requested doc. */

Source from the content-addressed store, hash-verified

983/* Create 128-bit cache key based on the input string, in this case,
984 the file_name of the requested doc. */
985TSCacheKey
986CacheKeyCreate(char *file_name)
987{
988 TSCacheKey key;
989
990 /* TSCacheKeyCreate is to allocate memory space for the key */
991 key = TSCacheKeyCreate();
992
993 /* TSCacheKeyDigestSet is to compute TSCackeKey from the input string */
994 TSCacheKeyDigestSet(key, file_name, strlen(file_name));
995 return key;
996}

Callers 1

Calls 2

TSCacheKeyCreateFunction · 0.85
TSCacheKeyDigestSetFunction · 0.85

Tested by

no test coverage detected