Skip to content

Commit c0696df

Browse files
committed
a note on key type limitation
1 parent ac1034e commit c0696df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cache/adapters/patrickmn/go-cache.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ type GoCacher interface {
1212
SetDefault(k string, x any)
1313
}
1414

15-
// GoCache creates a new cacher from the patrickmn/go-cache
15+
// GoCache creates a new cacher from the patrickmn/go-cache As go-cache supports
16+
// only string keys unfortunately the returned cacher is limited by string keys
17+
// too.
18+
//
1619
// For example:
1720
//
1821
// c := cache.New(5*time.Minute, 10*time.Minute)

0 commit comments

Comments
 (0)