chore(cache): add comment regarding usage of createCluster for Valkey

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-11-17 16:36:13 +01:00
parent 1a51cd99b0
commit 4ed29d5b7f
@@ -368,6 +368,8 @@ export class CacheManager {
private createValkeyStoreFactory(): StoreFactory {
const KeyvValkey = require('@keyv/valkey').default;
// `@keyv/valkey` doesn't export a `createCluster` function, but is compatible with the one from `@keyv/redis`
// See https://keyv.org/docs/storage-adapters/valkey
const { createCluster } = require('@keyv/redis');
const stores: Record<string, typeof KeyvValkey> = {};