s/NewFrom/NewFrom()/ in NewFrom doc
This commit is contained in:
parent
9ea75a8586
commit
a1dd6b7fff
2
cache.go
2
cache.go
|
@ -1002,7 +1002,7 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache {
|
|||
// manually. If the cleanup interval is less than one, expired items are not
|
||||
// deleted from the cache before calling c.DeleteExpired().
|
||||
//
|
||||
// NewFrom also accepts an items map which will serve as the underlying map
|
||||
// NewFrom() also accepts an items map which will serve as the underlying map
|
||||
// for the cache. This is useful for starting from a deserialized cache
|
||||
// (serialized using e.g. gob.Encode() on c.Items()), or passing in e.g.
|
||||
// make(map[string]*Item, 500) to improve startup performance when the cache
|
||||
|
|
Loading…
Reference in New Issue