Home

Traffic Server Software Developers Kit

INKVConnCacheObjectSizeGet

Gets the size of an object in the cache.

Prototype

INKReturnCode INKVConnCacheObjectSizeGet (INKVConn connp, int *obj_size)

Arguments

INKConn connp is the vconnection to the cache.

int *obj_size is set to the object size.

Description

When a cached object is requested from the cache (using INKCacheRead) and if the cache open was successful, then this function can be called to get the size of the object in the cache.

Returns

INK_SUCCESS if the API is called successfully.

INK_ERROR if an error occurs while calling the API or if an argument is invalid.