Feat(): distributed caching (#13435)

RESOLVES CORE-1153

**What**
- This pr mainly lay the foundation the caching layer. It comes with a modules (built in memory cache) and a redis provider.
- Apply caching to few touch point to test

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2025-09-30 16:19:06 +00:00
committed by GitHub
co-authored by Carlos R. L. Rodrigues
parent 5b135a41fe
commit b9d6f73320
117 changed files with 5741 additions and 530 deletions
@@ -244,6 +244,7 @@ describe("load internal", () => {
expect(generatedJoinerConfig).toEqual({
serviceName: "module-without-joiner-config",
primaryKeys: ["id"],
idPrefixToEntityName: {},
linkableKeys: {
entity2_id: "Entity2",
entity_model_id: "EntityModel",
@@ -322,6 +323,7 @@ describe("load internal", () => {
expect(generatedJoinerConfig).toEqual({
serviceName: "module-service",
primaryKeys: ["id"],
idPrefixToEntityName: {},
linkableKeys: {},
schema: "",
alias: [
@@ -231,7 +231,8 @@ export async function loadInternalModule(args: {
ContainerRegistrationKeys.CONFIG_MODULE,
ContainerRegistrationKeys.LOGGER,
ContainerRegistrationKeys.PG_CONNECTION,
Modules.EVENT_BUS
Modules.EVENT_BUS,
Modules.CACHING
)
for (const dependency of dependencies) {