Home / node / GlideClusterClient / type-aliases / AdvancedGlideClusterClientConfiguration @valkey/valkey-glide
@valkey/valkey-glide / GlideClusterClient / AdvancedGlideClusterClientConfiguration
Type Alias: AdvancedGlideClusterClientConfiguration
AdvancedGlideClusterClientConfiguration =
AdvancedBaseClientConfiguration&object
Represents advanced configuration settings for creating a GlideClusterClient used in GlideClusterClientConfiguration.
Type Declaration
refreshTopologyFromInitialNodes?
optionalrefreshTopologyFromInitialNodes:boolean
Enables refreshing the cluster topology using only the initial nodes.
When this option is enabled, all topology updates (both the periodic checks and on-demand refreshes triggered by topology changes) will query only the initial nodes provided when creating the client, rather than using the internal cluster view.
If not set, defaults to false (uses internal cluster view for topology refresh).
Example
const config: AdvancedGlideClusterClientConfiguration = {
connectionTimeout: 500, // Set the connection timeout to 500ms
tlsAdvancedConfiguration: {
insecure: true, // Skip TLS certificate verification (use only in development)
},
refreshTopologyFromInitialNodes: true, // Refresh topology from initial seed nodes
};