Cache Layer Memoization Issue in Custom App Runtime

Cache Layer is not being memoized. I was under the impression effect does some memoizing magic behind the scenes with respect to any layers injected into a custom app runtime as long as any effects are run with said runtime. My app runtime currently looks like this...(SchemaService in this instance is a company specific entity, not to be confused with effect/Schema)

const AppContext = Layer.mergeAll(
  EnvService.Layer,
  StorageService.Layer,
  TokenCache.Layer,
  AuthService.Layer,
  HttpClient.Layer,
  SchemaService.Layer,
);

const AppConfigProvider = ConfigProvider.fromJson(import.meta.env);

const AppLayer = Layer.provide(
  AppContext,
  Layer.mergeAll(Layer.setConfigProvider(AppConfigProvider)),
);

export const AppRuntime = ManagedRuntime.make(AppLayer);


my cache in its entirety is as follows...
Was this page helpful?