Skip to content

Commit adcb25c

Browse files
committed
add level-2 to cache in schema file
1 parent 16fdda3 commit adcb25c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

schemas/dab.draft.schema.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,30 @@
487487
"type": "integer",
488488
"description": "Time to live in seconds",
489489
"default": 5
490+
},
491+
"level-2": {
492+
"type": "object",
493+
"description": "Configuration for the level 2 (distributed) cache and backplane.",
494+
"additionalProperties": false,
495+
"properties": {
496+
"enabled": {
497+
"$ref": "#/$defs/boolean-or-string",
498+
"description": "Enable or disable the level 2 distributed cache.",
499+
"default": false
500+
},
501+
"provider": {
502+
"type": "string",
503+
"description": "The provider for the L2 cache. Currently only 'redis' is supported."
504+
},
505+
"connection-string": {
506+
"type": "string",
507+
"description": "The connection string for the level 2 cache provider."
508+
},
509+
"partition": {
510+
"type": "string",
511+
"description": "The prefix to use for cache keys in level 2 and backplane, useful in a shared environment to avoid collisions."
512+
}
513+
}
490514
}
491515
}
492516
},

0 commit comments

Comments
 (0)