Removes all cached sessions from memory. This can help free up memory
when switching between different models or when memory usage is high.
Note: This does not dispose of sessions, just removes them from cache.
Returns void
Example
// Clear all cached sessions clearSessionCache();
// Check cache stats after clearing conststats = getCacheStats(); console.log(`Sessions after clear: ${stats.currentSessions}`);
Clear session cache.
Removes all cached sessions from memory. This can help free up memory when switching between different models or when memory usage is high. Note: This does not dispose of sessions, just removes them from cache.