MCPcopy Create free account
hub / github.com/apache/httpd / socache_rd_remove

Function socache_rd_remove

modules/cache/mod_socache_redis.c:277–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static apr_status_t socache_rd_remove(ap_socache_instance_t *ctx, server_rec *s,
278 const unsigned char *id,
279 unsigned int idlen, apr_pool_t *p)
280{
281 char buf[RD_KEY_LEN];
282 apr_status_t rv;
283
284 if (socache_rd_id2key(ctx, id, idlen, buf, sizeof buf)) {
285 return APR_EINVAL;
286 }
287
288 rv = apr_redis_delete(ctx->rc, buf, 0);
289
290 if (rv != APR_SUCCESS) {
291 ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, s, APLOGNO(03481)
292 "scache_rd: error deleting key '%s' ",
293 buf);
294 }
295
296 return rv;
297}
298
299static void socache_rd_status(ap_socache_instance_t *ctx, request_rec *r, int flags)
300{

Callers

nothing calls this directly

Calls 2

socache_rd_id2keyFunction · 0.85
ap_log_errorFunction · 0.50

Tested by

no test coverage detected