Hi @yxx4c ,
in the same codebase (monorepo), I am not always using the redis extension: it depends on environment (e.g. not use it in dev) and application (e.g. if it mostly writes, the cache instead of helping just introduces additional latency and overhead).
With this scenario, it is critical that what comes from the database through Prisma is not dependent upon the extension being present or not.
For sure, there are other use cases where it is important to have additional information about the cache behavior, not to mention tests.
I quickly tried to implement another extension to chain to prisma-extension-redis that just returns the content of the result property, but I didn't succeed (maybe I didn't try hard enough).
If you have a solution that can be chained to the extension, be it another one, or something else at the Prisma client level, I'd be glad to implement it.
If this is not possible, I suggest to add a "Prisma Compatibility" switch in the cache configuration that, when set to true, just return the result content.
What do you think?