Skip to content

Commit 7de8f2f

Browse files
committed
deprecate NewLRU function in favor of New with WithLRU option
1 parent 1388c25 commit 7de8f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func WithARC(size int) Option {
3838
return WithDriver(cache)
3939
}
4040

41-
// NewLRU creates Loader with lru based cache
41+
// NewLRU is deprecated, use New with WithLRU option instead
4242
func NewLRU[Key comparable, Value any](fn Fetcher[Key, Value], ttl time.Duration, size int, options ...Option) *Loader[Key, Value] {
4343
options = append(options, WithLRU(size))
4444
return New(fn, ttl, options...)

0 commit comments

Comments
 (0)