- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLRU_Add_ExistingKey_UpdatesValueAndExpiresAt (0.16 sec)
-
tests/lru_test.go
package tests_test import ( "crypto/rand" "fmt" "math" "math/big" "reflect" "sync" "testing" "time" "gorm.io/gorm/internal/lru" ) func TestLRU_Add_ExistingKey_UpdatesValueAndExpiresAt(t *testing.T) { lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1) lru.Add("key1", 2) if value, ok := lru.Get("key1"); !ok || value != 2 {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 10.4K bytes - Viewed (0)