fix(cache): improve support for Valkey

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-10-22 17:32:10 +02:00
parent 4e5229e3ff
commit 2bc4e02903
6 changed files with 166 additions and 70 deletions
+2 -20
View File
@@ -710,27 +710,9 @@ export interface Config {
*/
client?: {
/**
* Namespace for the current instance.
* Namespace and separator used for prefixing keys.
*/
namespace?: string;
/**
* Separator to use between namespace and key.
*/
keyPrefixSeparator?: string;
/**
* Number of keys to delete in a single batch.
*/
clearBatchSize?: number;
/**
* Enable Unlink instead of using Del for clearing keys. This is more performant but may not be supported by all Redis versions.
*/
useUnlink?: boolean;
/**
* Whether to allow clearing all keys when no namespace is set.
* If set to true and no namespace is set, iterate() will return all keys.
* Defaults to `false`.
*/
noNamespaceAffectsAll?: boolean;
keyPrefix?: string;
};
/**
* An optional Valkey cluster (redis cluster under the hood) configuration.