Home

Traffic Server Software Developers Kit

Cache Interface Functions

INKCacheKeyCreate

Creates a new cache key that will be assigned to an object to be cached.

Prototype

INKReturnCode INKCacheKeyCreate(InkCacheKey *new_key)

Arguments

INKCacheKey *new_key is set to the allocated key.

Description

Creates (allocates memory for) a new cache key. The key can then be generated and assigned to an object using INKCacheKeyDigestSet.

Returns

INK_SUCCESS if successful.

INK_ERROR if the cache key could not be allocated.