diff --git a/packages/entity/src/utils/testing/StubCacheAdapter.ts b/packages/entity/src/utils/testing/StubCacheAdapter.ts index 0c879153..21f5ab85 100644 --- a/packages/entity/src/utils/testing/StubCacheAdapter.ts +++ b/packages/entity/src/utils/testing/StubCacheAdapter.ts @@ -118,6 +118,11 @@ class InMemoryFullCacheStubCacheAdapter extends EntityCacheAdapter(fieldName: N, fieldValue: TFields[N]): string { - return `${fieldName}:::${fieldValue}`; + return [ + this.entityConfiguration.tableName, + `v${this.entityConfiguration.cacheKeyVersion}`, + fieldName as string, + String(fieldValue), + ].join(':'); } }