Add TTL eviction to local data cache (#16510)

We keep different versions of our cache to avoid race conditions but we
never evict stale data. This PR should fix that
This commit is contained in:
Weiko
2025-12-12 10:14:46 +01:00
committed by GitHub
parent 4b2a604ef0
commit bd8ed03990
3 changed files with 39 additions and 11 deletions
@@ -3,7 +3,6 @@ import { Inject, Injectable } from '@nestjs/common';
import { msg } from '@lingui/core/macro';
import { type PermissionFlagType } from 'twenty-shared/constants';
import { isDefined } from 'twenty-shared/utils';
import { Omit } from 'zod/v4/core/util.cjs';
import { WorkspaceAuthContext } from 'src/engine/api/common/interfaces/workspace-auth-context.interface';
import { QueryResultFieldValue } from 'src/engine/api/graphql/workspace-query-runner/factories/query-result-getters/interfaces/query-result-field-value';