Cache configuration options
Optional maxOptional max// Limit cache to 3 sessions
configureCache({ maxSessions: 3 });
// Set memory limit to 1GB
configureCache({ maxMemoryMB: 1024 });
// Configure both
configureCache({
maxSessions: 5,
maxMemoryMB: 512
});
Configure cache settings.
Allows you to adjust cache behavior including maximum number of cached sessions and memory limits. Changes take effect immediately and affect future session creation.