Use apr_pcalloc in the 'create' function. All the fields are initialized in the 'init' function, but it is It is cleaner and more future proof.
Small style correction (remove extra spaces)
@@ -79,7 +79,7 @@ static const char *socache_rd_create(ap_socache_instance_t **context,
{
ap_socache_instance_t *ctx;
- *context = ctx = apr_palloc(p, sizeof *ctx);
+ *context = ctx = apr_pcalloc(p, sizeof *ctx);
if (!arg || !*arg) {
return "List of server names required to create redis socache.";
