Skip to content

Commit 18ce4fa

Browse files
authored
refactor (#143)
Signed-off-by: kpango <[email protected]>
1 parent 209b650 commit 18ce4fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gache_benchmark_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func (m *DefaultMap) Get(key interface{}) (interface{}, bool) {
3535
func (m *DefaultMap) Set(key, val interface{}) {
3636
m.mu.Lock()
3737
defer m.mu.Unlock()
38+
m.data[key] = val
3839
}
3940

4041
var (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kpango/gache/v2
22

3-
go 1.23.1
3+
go 1.23.3
44

55
require (
66
github.com/kpango/fastime v1.1.9

0 commit comments

Comments
 (0)