We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1388c25 commit 7de8f2fCopy full SHA for 7de8f2f
1 file changed
lru.go
@@ -38,7 +38,7 @@ func WithARC(size int) Option {
38
return WithDriver(cache)
39
}
40
41
-// NewLRU creates Loader with lru based cache
+// NewLRU is deprecated, use New with WithLRU option instead
42
func NewLRU[Key comparable, Value any](fn Fetcher[Key, Value], ttl time.Duration, size int, options ...Option) *Loader[Key, Value] {
43
options = append(options, WithLRU(size))
44
return New(fn, ttl, options...)
0 commit comments