Create 128-bit cache key based on the input string, in this case, the file_name of the requested doc. */
| 983 | /* Create 128-bit cache key based on the input string, in this case, |
| 984 | the file_name of the requested doc. */ |
| 985 | TSCacheKey |
| 986 | CacheKeyCreate(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 | } |
no test coverage detected