fixup! fixup! fixup! fixup! fixup! Further pursue of perfection.

This commit is contained in:
2025-09-06 00:24:46 +01:00
parent b182951f22
commit eab8e04573
36 changed files with 1079 additions and 969 deletions
+7 -1
View File
@@ -31,7 +31,13 @@ func TestOptimizedCacheBasic(t *testing.T) {
// Test with config
logger := NewLogger("debug")
cache2 := NewOptimizedCacheWithConfig(50, 10, logger)
config := OptimizedCacheConfig{
MaxSize: 50,
MaxMemoryBytes: 10,
Logger: logger,
EnableMemoryLimit: true,
}
cache2 := NewOptimizedCacheWithConfig(config)
if cache2 == nil {
t.Fatal("NewOptimizedCacheWithConfig returned nil")
}