Skip to content

Commit 490a535

Browse files
gopls/internal/util/lru: Move cache to its own internal utility in internal/lru
This change exposes the LRU cache for use in other modules, such as internal/imports, which may use it in the future to support caching across repeated invocations.
1 parent dd0410f commit 490a535

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

gopls/internal/filecache/filecache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"time"
4040

4141
"golang.org/x/tools/gopls/internal/util/bug"
42-
"golang.org/x/tools/gopls/internal/util/lru"
42+
"golang.org/x/tools/internal/lru"
4343
)
4444

4545
// Start causes the filecache to initialize and start garbage gollection.
File renamed without changes.

gopls/internal/util/lru/lru_fuzz_test.go renamed to internal/lru/lru_fuzz_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package lru_test
77
import (
88
"testing"
99

10-
"golang.org/x/tools/gopls/internal/util/lru"
10+
"golang.org/x/tools/internal/lru"
1111
)
1212

1313
// Simple fuzzing test for consistency.

gopls/internal/util/lru/lru_test.go renamed to internal/lru/lru_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"testing"
1515

1616
"golang.org/x/sync/errgroup"
17-
"golang.org/x/tools/gopls/internal/util/lru"
17+
"golang.org/x/tools/internal/lru"
1818
)
1919

2020
func TestCache(t *testing.T) {

0 commit comments

Comments
 (0)