Removes an object from the Traffic Server cache.
INKAction INKCacheRemove (INKCont
contp
, INKCacheKey
key
)
INKCont
is the
continuation the cache calls back when reporting the success or
failure of the remove.contp
INKCacheKey
is the cache key
that corresponds to the object tol be removed.key
Removes the object corresponding to
from the
cache.key
If the object was removed successfully, then the cache calls
back with the
event contp
INK_EVENT_CACHE_REMOVE
.
If the object was not found in the cache, then the cache calls
back with the
event contp
INK_EVENT_CACHE_REMOVE_FAILED
. An error code
is passed in the void *edata
argument of
. The error code
can be:contp
INK_CACHE_ERROR_NOT_READY
: tried to
access the cache before it was initialized.
INK_CACHE_ERROR_NO_DOC
: doc doesn't exist
in cache
any other value: unknown remove failure
In both of these callbacks, the user does not have to do
anything. The user does not get a vconnection from the cache,
since no data needs to be transferred. When the cache calls the
user back with INK_EVENT_CACHE_REMOVE
, the remove
has already been committed.
![]() |
Note |
---|---|
Reentrant calls are possible, i.e. the cache can call
back the user ( |
An INKAction
object if
successful.
INK_ERROR_PTR
if an argument is incorrect or
if the API fails.