pub unsafe extern "C" fn nanocoap_cache_add_by_key(
    cache_key: *const u8,
    request_method: c_uint,
    resp: *const coap_pkt_t,
    resp_len: size_t
) -> *mut nanocoap_cache_entry_t
Expand description

@brief Creates a new or gets an existing cache entry using the cache key.

@param[in] cache_key The cache key of the request @param[in] request_method The method of the initial request @param[in] resp The response to add to the cache @param[in] resp_len The actual length of the response in @p resp

@return The previously existing or newly added cache entry on success @return NULL, if there is no space left