ec_cache_delete
Last updated March 2020
Name
ec_cache_delete — Delete an item determined by key
from a cache
Synopsis
#include "ec_cache.h"
| int **ec_cache_delete** (
| cache, | |
| | key, | |
| | keylen)
; | |
ec_cache_t * <var class="pdparam">cache</var>
;
const char * <var class="pdparam">key</var>
;
int <var class="pdparam">keylen</var>
;
Description
Delete an item determined by key
from a cache.
- cache
-
The address of the cache. The following typedef applies to the
ec_cache_t
data type:typedef struct ec_cache_head ec_cache_t;
. - key
-
Identifies the entry in the cache.
- keylen
-
The length of the key, in bytes.
Returns 1
if the item was deleted from the cache and 0
otherwise.
Note
Implicitly calls ec_cache_delref on the corresponding structure determined by key
.
It is legal to call this function in any thread.
See Also
Was this page helpful?