| 275 | } |
| 276 | |
| 277 | static 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 | |
| 299 | static void socache_rd_status(ap_socache_instance_t *ctx, request_rec *r, int flags) |
| 300 | { |
nothing calls this directly
no test coverage detected