s/NewFrom/NewFrom()/ in NewFrom doc

master
Patrick Mylund Nielsen 10 years ago
parent 9ea75a8586
commit a1dd6b7fff

@ -1002,7 +1002,7 @@ func New(defaultExpiration, cleanupInterval time.Duration) *Cache {
// manually. If the cleanup interval is less than one, expired items are not // manually. If the cleanup interval is less than one, expired items are not
// deleted from the cache before calling c.DeleteExpired(). // 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 // 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. // (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 // make(map[string]*Item, 500) to improve startup performance when the cache

Loading…
Cancel
Save