Associates a host name to a cache key. Use if you want to support cache partitioning by host name.
INKReturnCode INKCacheKeyHostNameSet(INKCacheKey
key
, const unsigned char
*hostname
, int
host_len
;
INKCacheKey
is
the key to the cached object.key
const unsigned char
is
the host name you are associating with the cache key.*hostname
int
is
the length of the string
host_len
.hostname
Associates a host name to a cache key. The host name
setting is used in conjunction with the Traffic Server configuration files
partition.config
and
hosting.config
that enable you to specify
under which cache partition the object should be stored.
INK_SUCCESS
if the
is successfully
associated with the cache key. hostname
INK_ERROR
if
cannot
be set or is invalid.hostname